mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
do NOT allow to delete original contact content-type for addressbook, as it only creates support problems as users incidently delete it
This commit is contained in:
parent
8d55e4800e
commit
7a948de39e
@ -189,6 +189,12 @@ class customfields
|
||||
$sel_options = array(
|
||||
'type2' => $this->types2 + array('tmpl' => 'template'),
|
||||
);
|
||||
// do NOT allow to delete original contact content-type for addressbook,
|
||||
// as it only creates support problems as users incidently delete it
|
||||
if ($this->appname == 'addressbook' && $this->content_type == 'n')
|
||||
{
|
||||
$readonlys['content_types']['delete'] = true;
|
||||
}
|
||||
$this->tmpl->exec('admin.customfields.edit',$content,$sel_options,$readonlys,array(
|
||||
'fields' => $preserv_fields,
|
||||
'appname' => $this->appname,
|
||||
|
Loading…
Reference in New Issue
Block a user