Skip to content
Snippets Groups Projects
Commit e2e94d79 authored by git's avatar git Committed by Nathan ter Bogt
Browse files

Issue #3178619 by bojan_dev: Unable to map multiple countries to the same language

parent 160bf940
Branches
Tags 2.0.0-rc1
No related merge requests found
......@@ -59,9 +59,6 @@ class SmartIpLanguageMappingForm extends EntityForm {
if ($db_entity->getCountry() === $entity->getCountry()) {
$form_state->setErrorByName('country', $this->t('The country code %country_code already exists and must be unique.', ['%country_code' => $entity->getCountry()]));
}
elseif ($db_entity->getLanguage() === $entity->getLanguage()) {
$form_state->setErrorByName('language', $this->t('The language code %langcode already exists and must be unique.', ['%langcode' => $entity->getLanguage()]));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment