From d7e0cccecbec4adb17c4f7dcedb6a3e30d92560d Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 10 May 2018 06:25:30 -0400 Subject: [PATCH] Apply the LanguageSupportPageNames duplicate checking feature without debug/advanced modes per processwire/processwire-issues#322 --- .../LanguageSupport/LanguageSupportPageNames.module | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/wire/modules/LanguageSupport/LanguageSupportPageNames.module b/wire/modules/LanguageSupport/LanguageSupportPageNames.module index 4b15a524..724a999d 100644 --- a/wire/modules/LanguageSupport/LanguageSupportPageNames.module +++ b/wire/modules/LanguageSupport/LanguageSupportPageNames.module @@ -565,12 +565,9 @@ class LanguageSupportPageNames extends WireData implements Module, ConfigurableM $key = "name$language"; if($value == $page->get($key)) continue; - // @todo make the following apply without debug+advanced mode after further testing on dev - if($this->wire('config')->debug && $this->wire('config')->advanced) { - $parentID = $page->parent_id; - if(!$parentID) $parentID = (int) $this->wire('input')->post('parent_id'); - if(!$this->checkLanguagePageName($language, $page, $parentID, $value, $inputfield)) continue; - } + $parentID = $page->parent_id; + if(!$parentID) $parentID = (int) $this->wire('input')->post('parent_id'); + if(!$this->checkLanguagePageName($language, $page, $parentID, $value, $inputfield)) continue; if($page->id) { $page->set($key, $value);