From 4f9156625eeddfa7770d03724c93a8e04ff2531b Mon Sep 17 00:00:00 2001
From: Vasilii Burlacu <vasilii@atwix.com>
Date: Fri, 29 Dec 2017 09:11:37 +0200
Subject: [PATCH] Fix issue 12894: Can't remove State is required for all
 countries

---
 app/code/Magento/Directory/etc/adminhtml/system.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/code/Magento/Directory/etc/adminhtml/system.xml b/app/code/Magento/Directory/etc/adminhtml/system.xml
index 21eccd5bd52..15a82e006bf 100644
--- a/app/code/Magento/Directory/etc/adminhtml/system.xml
+++ b/app/code/Magento/Directory/etc/adminhtml/system.xml
@@ -109,6 +109,7 @@
                 <field id="state_required" translate="label" type="multiselect" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
                     <label>State is Required for</label>
                     <source_model>Magento\Directory\Model\Config\Source\Country</source_model>
+                    <can_be_empty>1</can_be_empty>
                 </field>
                 <field id="display_all" translate="label" type="select" sortOrder="8" showInDefault="1" showInWebsite="0" showInStore="0">
                     <label>Allow to Choose State if It is Optional for Country</label>
-- 
GitLab