diff --git a/ProcessMaker/Http/Controllers/Api/ScreenController.php b/ProcessMaker/Http/Controllers/Api/ScreenController.php index 943618b81b..894a226683 100644 --- a/ProcessMaker/Http/Controllers/Api/ScreenController.php +++ b/ProcessMaker/Http/Controllers/Api/ScreenController.php @@ -430,7 +430,7 @@ public function duplicate(Screen $screen, Request $request) $request->validate(Screen::rules()); $newScreen = new Screen(); - $exclude = ['id', 'uuid', 'created_at', 'updated_at', 'key']; + $exclude = ['id', 'uuid', 'created_at', 'updated_at', 'key', 'is_default']; foreach ($screen->getAttributes() as $attribute => $value) { if (!in_array($attribute, $exclude)) { $newScreen->{$attribute} = $screen->{$attribute};