File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
ProcessMaker/ImportExport/Exporters Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1212use ProcessMaker \Models \Media ;
1313use ProcessMaker \Models \Process ;
1414use ProcessMaker \Models \ProcessCategory ;
15+ use ProcessMaker \Models \ProcessLaunchpad ;
1516use ProcessMaker \Models \Screen ;
1617use ProcessMaker \Models \Script ;
1718use ProcessMaker \Models \User ;
@@ -547,6 +548,9 @@ public function exportProcessLaunchpad(): void
547548 public function importProcessLaunchpad (): void
548549 {
549550 foreach ($ this ->getDependents ('process_launchpad ' ) as $ launchpad ) {
551+ if (ProcessLaunchpad::where ('process_id ' , $ this ->model ->id )->exists ()) {
552+ continue ;
553+ }
550554 $ launchpad ->model ->setAttribute ('process_id ' , $ this ->model ->id );
551555 $ launchpad ->model ->saveOrFail ();
552556 }
You can’t perform that action at this time.
0 commit comments