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:54:48 +00:00
parent 8d55e4800e
commit 7a948de39e

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,