Fix Un-Delete label on Save button for new infologs

This commit is contained in:
Nathan Gray 2014-03-26 14:33:03 +00:00
parent 8f6f417a9e
commit 69fea7dc9c

View File

@ -1995,7 +1995,7 @@ class infolog_ui
$readonlys['action'] = true;
}
// ToDo: use the old status before the delete
if ($undelete)
if ($info_id && $undelete)
{
$content['info_status'] = $this->bo->status['defaults'][$content['info_type']];
$this->tmpl->setElementAttribute('button[save]', 'label', 'Un-Delete');