diff --git a/controllers/CharactersController.inc b/controllers/CharactersController.inc index a3b27887..c0303da4 100644 --- a/controllers/CharactersController.inc +++ b/controllers/CharactersController.inc @@ -491,7 +491,7 @@ $typeIndex = null; foreach($types as $index => &$type) { - $type['selected'] = ($type['url'] == $this->request->getPostParam('type')); + $type['selected'] = (count(array_intersect(array('admin','moderator'), \hhu\z\controllers\SeminaryController::$character['characterroles'])) > 0) ? ($type['url'] == $this->request->getPostParam('type')) : ($type['url'] == $character['charactertype_url']); if($type['selected']) { $typeIndex = $index; } diff --git a/views/html/characters/edit.tpl b/views/html/characters/edit.tpl index bb20be3e..e5815d77 100644 --- a/views/html/characters/edit.tpl +++ b/views/html/characters/edit.tpl @@ -62,7 +62,14 @@

+ 0) : ?> checked="checked" /> + + checked="checked" /> + + + +