Fix #1217 enable notifications for scrap

This commit is contained in:
Kijin Sung 2019-11-23 12:04:14 +09:00
parent 05fed158d0
commit b1e01b0fc5
9 changed files with 93 additions and 6 deletions

View file

@ -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');
}