If editing a deleted infolog, change the save label to 'Un-Delete' to be a little more clear, though 'Apply' would work too

This commit is contained in:
Nathan Gray 2014-03-25 18:53:07 +00:00
parent 2f90f3d427
commit b9be77fe0f

View File

@ -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)))
{