Move delete metas in if clause
[MAILPOET-4966]
This commit is contained in:
@@ -66,8 +66,8 @@ class UpdateAutomationController {
|
||||
}
|
||||
}
|
||||
|
||||
$automation->deleteAllMetas();
|
||||
if (array_key_exists('meta', $data)) {
|
||||
$automation->deleteAllMetas();
|
||||
foreach ($data['meta'] as $key => $value) {
|
||||
$automation->setMeta($key, $value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user