mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +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
888eb2b3cb
commit
45e647b9d2
@ -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