mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:36 +01:00
Backport 32264 - Add action to undelete selected addresses. Only visible when viewing deleted addresses.
This commit is contained in:
parent
4c5a90726e
commit
9e8a9a7ee1
@ -285,6 +285,10 @@ class addressbook_ui extends addressbook_bo
|
||||
// check if user is an admin or the export is not generally turned off (contact_export_limit is non-numerical, eg. no)
|
||||
if (isset($GLOBALS['egw_info']['user']['apps']['admin']) || !$this->config['contact_export_limit'] || (int)$this->config['contact_export_limit'])
|
||||
{
|
||||
if($content['nm']['col_filter']['tid'] == 'D')
|
||||
{
|
||||
$sel_options['action']['undelete'] = lang('Un-delete');
|
||||
}
|
||||
$sel_options['action'] += array(
|
||||
'csv' => lang('Export as CSV'),
|
||||
'vcard' => lang('Export as VCard'), // ToDo: move this to importexport framework
|
||||
@ -696,6 +700,14 @@ class addressbook_ui extends addressbook_bo
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'undelete':
|
||||
$action_msg = lang('recovered');
|
||||
if ($contact = $this->read($id))
|
||||
{
|
||||
$contact['tid'] = 'n';
|
||||
$Ok = $this->save($contact);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'email':
|
||||
case 'email_home':
|
||||
|
Loading…
Reference in New Issue
Block a user