* Admin/All apps: enable private custom-fields

can be explicitly disabled via GET parameter use_private=0
This commit is contained in:
Ralf Becker 2013-06-06 17:05:56 +00:00
parent 9ed61924d0
commit 0a22f09523

View File

@ -140,7 +140,7 @@ class customfields
$content_types = array_keys($this->content_types); $content_types = array_keys($this->content_types);
$this->content_type = $content_types[0]; $this->content_type = $content_types[0];
} }
$content['use_private'] = (boolean)$_GET['use_private']; $content['use_private'] = !isset($_GET['use_private']) || (boolean)$_GET['use_private'];
$referer = $GLOBALS['egw']->common->get_referer(); $referer = $GLOBALS['egw']->common->get_referer();
} }