Unify JS check and API error message for blocking trashing
[MAILPOET-3463]
This commit is contained in:
committed by
Veljko V
parent
9dde8d5525
commit
666be344db
@@ -159,8 +159,8 @@ class DynamicSegments extends APIEndpoint {
|
|||||||
return $this->badRequest([
|
return $this->badRequest([
|
||||||
Error::BAD_REQUEST => str_replace(
|
Error::BAD_REQUEST => str_replace(
|
||||||
'%$1s',
|
'%$1s',
|
||||||
$activelyUsedNewslettersSubjects[$segment->getId()][0],
|
"'" . join("', '", $activelyUsedNewslettersSubjects[$segment->getId()] ) . "'",
|
||||||
_x('List cannot be deleted because it’s used for %$1s email', 'Alert shown when trying to delete segment, which is assigned to any automatic emails.')
|
_x('List cannot be deleted because it’s used for %$1s email', 'Alert shown when trying to delete segment, which is assigned to any automatic emails.', 'mailpoet')
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user