mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Fix #1217 enable notifications for scrap
This commit is contained in:
parent
05fed158d0
commit
b1e01b0fc5
9 changed files with 93 additions and 6 deletions
|
|
@ -190,10 +190,20 @@ class memberController extends member
|
|||
throw new Rhymix\Framework\Exception('msg_alreay_scrapped');
|
||||
}
|
||||
|
||||
// Call trigger (before)
|
||||
$trigger_output = ModuleHandler::triggerCall('member.procMemberScrapDocument', 'before', $args);
|
||||
if (!$trigger_output->toBool())
|
||||
{
|
||||
return $trigger_output;
|
||||
}
|
||||
|
||||
// Insert
|
||||
$output = executeQuery('member.addScrapDocument', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// Call trigger (after)
|
||||
ModuleHandler::triggerCall('member.procMemberScrapDocument', 'after', $args);
|
||||
|
||||
$this->setError(-1);
|
||||
$this->setMessage('success_registed');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue