fix check of Character groups-group title by using Seminary-ID (fixes #151)
This commit is contained in:
parent
4e7fdd973e
commit
67f92d6174
2 changed files with 9 additions and 7 deletions
|
|
@ -168,7 +168,7 @@
|
|||
// Get params and validate them
|
||||
$validation = $this->Validation->validateParams($this->request->getPostParams(), $fields);
|
||||
$charactergroupsgroupname = $this->request->getPostParam('charactergroupsgroupname');
|
||||
if($this->Charactergroups->characterGroupsgroupNameExists($charactergroupsgroupname)) {
|
||||
if($this->Charactergroups->characterGroupsgroupNameExists($seminary['id'], $charactergroupsgroupname)) {
|
||||
$validation = $this->Validation->addValidationResult($validation, 'charactergroupsgroupname', 'exist', true);
|
||||
}
|
||||
$preferred = !is_null($this->request->getPostParam('preferred'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue