mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Do not rollback if an 'after' trigger returns error
This commit is contained in:
parent
2300106aa5
commit
eb895f76cd
13 changed files with 81 additions and 227 deletions
|
|
@ -672,12 +672,7 @@ class pointController extends point
|
|||
$trigger_obj->new_group_list = $new_group_list;
|
||||
$trigger_obj->del_group_list = $del_group_list;
|
||||
$trigger_obj->new_level = $level;
|
||||
$trigger_output = ModuleHandler::triggerCall('point.setPoint', 'after', $trigger_obj);
|
||||
if(!$trigger_output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $trigger_output;
|
||||
}
|
||||
ModuleHandler::triggerCall('point.setPoint', 'after', $trigger_obj);
|
||||
|
||||
$oDB->commit();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue