Skip to content

Commit ec9ee6a

Browse files
unset CommentConfiguration when checking for duplicate asset
1 parent 1323137 commit ec9ee6a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ProcessMaker/Http/Controllers/Api/TemplateController.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@ private function checkIfAssetsExist($request)
215215
$existingOptions = [];
216216

217217
foreach ($payload['export'] as $key => $asset) {
218+
if (Str::contains($asset['model'], 'CommentConfiguration')
219+
) {
220+
unset($payload['export'][$key]);
221+
continue;
222+
}
223+
218224
if (!$asset['model']::where('uuid', $key)->exists()
219225
|| $payload['root'] === $asset['attributes']['uuid']
220226
|| Str::contains($asset['type'], 'Category')

0 commit comments

Comments
 (0)