mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Add group_srl to result of insertGroup()
This commit is contained in:
parent
2dbdfbaadb
commit
ee9349c734
1 changed files with 5 additions and 13 deletions
|
|
@ -1347,29 +1347,21 @@ class MemberAdminController extends Member
|
|||
}
|
||||
|
||||
// Check the value of is_default.
|
||||
if($args->is_default != 'Y')
|
||||
{
|
||||
$args->is_default = 'N';
|
||||
}
|
||||
else
|
||||
$args->is_default = $args->is_default ?? 'N';
|
||||
if($args->is_default === 'Y')
|
||||
{
|
||||
$output = executeQuery('member.updateGroupDefaultClear', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
}
|
||||
|
||||
if(!isset($args->list_order) || $args->list_order=='')
|
||||
{
|
||||
$args->list_order = $args->group_srl;
|
||||
}
|
||||
|
||||
if(!$args->group_srl) $args->group_srl = getNextSequence();
|
||||
$args->list_order = $args->group_srl;
|
||||
if(empty($args->group_srl)) $args->group_srl = getNextSequence();
|
||||
$args->list_order = $args->list_order ?? $args->group_srl;
|
||||
$output = executeQuery('member.insertGroup', $args);
|
||||
$this->_deleteMemberGroupCache();
|
||||
|
||||
// Call trigger (after)
|
||||
ModuleHandler::triggerCall('member.insertGroup', 'after', $args);
|
||||
|
||||
$output->add('group_srl', $args->group_srl);
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue