From b9be77fe0f4db8b772ac225843a2c06ebf5efa39 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 25 Mar 2014 18:53:07 +0000 Subject: [PATCH] If editing a deleted infolog, change the save label to 'Un-Delete' to be a little more clear, though 'Apply' would work too --- infolog/inc/class.infolog_ui.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index b586a77576..60f6a3e5df 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -1995,8 +1995,11 @@ class infolog_ui $readonlys['action'] = true; } // ToDo: use the old status before the delete - if ($undelete) $content['info_status'] = $this->bo->status['defaults'][$content['info_type']]; - + if ($undelete) + { + $content['info_status'] = $this->bo->status['defaults'][$content['info_type']]; + $this->tmpl->setElementAttribute('button[save]', 'label', 'Un-Delete'); + } if (!($readonlys['button[delete]'] = !$info_id || !$this->bo->check_access($info_id,EGW_ACL_DELETE))) {