Add new segment to data mapper

[MAILPOET-3224]
This commit is contained in:
Pavel Dohnal
2021-04-14 10:17:40 +02:00
committed by Veljko V
parent 38f8f1d23f
commit deb6b9315e
6 changed files with 43 additions and 2 deletions

View File

@ -135,6 +135,8 @@ class DynamicSegments extends APIEndpoint {
return WPFunctions::get()->__('Please select product.', 'mailpoet');
case InvalidFilterException::MISSING_CATEGORY_ID:
return WPFunctions::get()->__('Please select category.', 'mailpoet');
case InvalidFilterException::MISSING_VALUE:
return WPFunctions::get()->__('Please fill all required values.', 'mailpoet');
default:
return WPFunctions::get()->__('An error occurred while saving data.', 'mailpoet');
}