mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
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:
parent
2f90f3d427
commit
b9be77fe0f
@ -1995,8 +1995,11 @@ class infolog_ui
|
|||||||
$readonlys['action'] = true;
|
$readonlys['action'] = true;
|
||||||
}
|
}
|
||||||
// ToDo: use the old status before the delete
|
// 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)))
|
if (!($readonlys['button[delete]'] = !$info_id || !$this->bo->check_access($info_id,EGW_ACL_DELETE)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user