Skip to content

Commit

Permalink
#3540 [RegisterDocument] fix: event on generation
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-theo committed Nov 30, 2023
1 parent 16d066e commit 3b853eb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,14 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
case 'RISKASSESSMENTDOCUMENT_GENERATE' :
case 'LEGALDISPLAY_GENERATE' :
case 'INFORMATIONSSHARING_GENERATE' :
case 'REGISTERDOCUMENT_GENERATE' :
case 'FIREPERMITDOCUMENT_GENERATE' :
case 'PREVENTIONPLANDOCUMENT_GENERATE' :
case 'LISTINGRISKSACTION_GENERATE' :
case 'LISTINGRISKSPHOTO_GENERATE' :
case 'WORKUNITDOCUMENT_GENERATE' :
case 'GROUPMENTDOCUMENT_GENERATE' :

if ($object->parent_type == 'groupment' || $object->parent_type == 'workunit' || preg_match('/listingrisks/', $object->parent_type)) {
$object->parent_type = 'digiriskelement';
}
Expand Down

0 comments on commit 3b853eb

Please sign in to comment.