Unify JS check and API error message for blocking trashing

[MAILPOET-3463]
This commit is contained in:
Rostislav Wolny
2021-03-22 15:50:18 +01:00
committed by Veljko V
parent 9dde8d5525
commit 666be344db

View File

@@ -159,8 +159,8 @@ class DynamicSegments extends APIEndpoint {
return $this->badRequest([
Error::BAD_REQUEST => str_replace(
'%$1s',
$activelyUsedNewslettersSubjects[$segment->getId()][0],
_x('List cannot be deleted because its used for %$1s email', 'Alert shown when trying to delete segment, which is assigned to any automatic emails.')
"'" . join("', '", $activelyUsedNewslettersSubjects[$segment->getId()] ) . "'",
_x('List cannot be deleted because its used for %$1s email', 'Alert shown when trying to delete segment, which is assigned to any automatic emails.', 'mailpoet')
),
]);
}