mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-12 08:20:31 +01:00
fix (not) setting owner in 1.8
This commit is contained in:
parent
6fafa913bd
commit
12eb2a6113
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user