Skip to content

Commit 79570fa

Browse files
authored
Merge pull request #8472 from ProcessMaker/bugfix/FOUR-25966-b
FOUR-25996: It is not possible to delete "Default Email Task Notification" that were copied
2 parents 566dc35 + 3a08c53 commit 79570fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ProcessMaker/Http/Controllers/Api/ScreenController.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ public function duplicate(Screen $screen, Request $request)
430430
$request->validate(Screen::rules());
431431
$newScreen = new Screen();
432432

433-
$exclude = ['id', 'uuid', 'created_at', 'updated_at', 'key'];
433+
$exclude = ['id', 'uuid', 'created_at', 'updated_at', 'key', 'is_default'];
434434
foreach ($screen->getAttributes() as $attribute => $value) {
435435
if (!in_array($attribute, $exclude)) {
436436
$newScreen->{$attribute} = $screen->{$attribute};

0 commit comments

Comments
 (0)