File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,12 @@ public static function createActionDefinitionFromEditmode(\stdClass $setting)
4444 $ actionDelayMultiplier = isset (self ::$ actionDelayMultiplier [$ setting ->options ->actionDelayGuiType ]) ? self ::$ actionDelayMultiplier [$ setting ->options ->actionDelayGuiType ] : 1 ;
4545
4646 $ action = new \CustomerManagementFrameworkBundle \Model \ActionTrigger \ActionDefinition ();
47- $ action ->setId ($ setting ->id );
48- $ action ->setCreationDate ($ setting ->creationDate );
47+ if (isset ($ setting ->id )) {
48+ $ action ->setId ($ setting ->id );
49+ }
50+ if (isset ($ setting ->creationDate )) {
51+ $ action ->setCreationDate ($ setting ->creationDate );
52+ }
4953 $ action ->setOptions (json_decode (json_encode ($ setting ->options ), true ));
5054 $ action ->setImplementationClass ($ setting ->implementationClass );
5155 $ action ->setActionDelay ($ setting ->options ->actionDelayGuiValue * $ actionDelayMultiplier );
You can’t perform that action at this time.
0 commit comments