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:
Ralf Becker 2010-01-07 04:57:01 +00:00
parent 888eb2b3cb
commit 45e647b9d2

View File

@ -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,