fix (not) setting owner in 1.8

This commit is contained in:
Ralf Becker 2014-07-10 06:23:44 +00:00
parent 6fafa913bd
commit 12eb2a6113

View File

@ -117,7 +117,7 @@ class admin_categories
}
elseif ($content['button'] || $content['delete'])
{
$cats = new categories(categories::GLOBAL_ACCOUNT,$content['appname']);
$cats = new categories($content['owner'] ? $content['owner'] : categories::GLOBAL_ACCOUNT,$content['appname']);
if ($content['delete']['delete'])
{
@ -184,6 +184,7 @@ class admin_categories
$sel_options['icon'] = self::get_icons();
$readonlys['button[delete]'] = !$content['id'] || !self::$acl_delete; // cant delete not yet saved category
if ($content['id']) $readonlys['owner'] = true; // 1.8 can NOT change owner
$tmpl = new etemplate('admin.categories.edit');
$tmpl->exec('admin.admin_categories.edit',$content,$sel_options,$readonlys,$content+array(