From a4bebbce2ed44ceb2c73d10e9959f270097b949f Mon Sep 17 00:00:00 2001 From: dai-eastgate <106214469+dai-eastgate@users.noreply.github.com> Date: Wed, 2 Aug 2023 14:13:18 +0700 Subject: [PATCH] 34982-edit-list-view (#531) --- plugin/Gui/AdminPageEstateDetail.php | 2 -- plugin/Gui/AdminPageEstateListSettings.php | 2 -- plugin/Gui/AdminPageEstateUnitSettings.php | 1 - plugin/Gui/AdminPageFormSettingsBase.php | 2 -- plugin/Gui/AdminPageSimilarEstates.php | 2 -- 5 files changed, 9 deletions(-) diff --git a/plugin/Gui/AdminPageEstateDetail.php b/plugin/Gui/AdminPageEstateDetail.php index 0d85ea475..6c697874a 100644 --- a/plugin/Gui/AdminPageEstateDetail.php +++ b/plugin/Gui/AdminPageEstateDetail.php @@ -44,7 +44,6 @@ use stdClass; use function __; use function add_action; -use function add_screen_option; use function do_accordion_sections; use function do_action; use function do_meta_boxes; @@ -284,7 +283,6 @@ protected function generateAccordionBoxesContactPerson(FieldsCollection $pFields */ protected function buildForms() { - add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); $pFormModelBuilder = new FormModelBuilderEstateDetailSettings(); $pFormModel = $pFormModelBuilder->generate($this->getPageSlug()); $this->addFormModel($pFormModel); diff --git a/plugin/Gui/AdminPageEstateListSettings.php b/plugin/Gui/AdminPageEstateListSettings.php index 94571c591..ea63d86e8 100644 --- a/plugin/Gui/AdminPageEstateListSettings.php +++ b/plugin/Gui/AdminPageEstateListSettings.php @@ -43,7 +43,6 @@ use onOffice\WPlugin\Record\RecordManager; use stdClass; use function __; -use function add_screen_option; use function wp_enqueue_script; use function wp_localize_script; @@ -79,7 +78,6 @@ public function __construct($pageSlug) protected function buildForms() { - add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); $pFormModelBuilder = new FormModelBuilderDBEstateListSettings(); $pFormModel = $pFormModelBuilder->generate($this->getPageSlug(), $this->getListViewId()); $this->addFormModel($pFormModel); diff --git a/plugin/Gui/AdminPageEstateUnitSettings.php b/plugin/Gui/AdminPageEstateUnitSettings.php index 318d86b5b..720816229 100644 --- a/plugin/Gui/AdminPageEstateUnitSettings.php +++ b/plugin/Gui/AdminPageEstateUnitSettings.php @@ -59,7 +59,6 @@ public function __construct($pageSlug) protected function buildForms() { - add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); $pFormModelBuilder = new FormModelBuilderDBEstateUnitListSettings(); $pFormModel = $pFormModelBuilder->generate($this->getPageSlug(), $this->getListViewId()); $this->addFormModel($pFormModel); diff --git a/plugin/Gui/AdminPageFormSettingsBase.php b/plugin/Gui/AdminPageFormSettingsBase.php index 316528ab1..aa24cce6a 100644 --- a/plugin/Gui/AdminPageFormSettingsBase.php +++ b/plugin/Gui/AdminPageFormSettingsBase.php @@ -58,7 +58,6 @@ use onOffice\WPlugin\WP\InstalledLanguageReader; use stdClass; use function __; -use function add_screen_option; use function esc_sql; use function wp_enqueue_script; @@ -420,7 +419,6 @@ private function readCustomLabels(): array protected function buildForms() { - add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); $this->_pFormModelBuilder = $this->getContainer()->get(FormModelBuilderDBForm::class); $this->_pFormModelBuilder->setFormType($this->getType()); $pFormModel = $this->_pFormModelBuilder->generate($this->getPageSlug(), $this->getListViewId()); diff --git a/plugin/Gui/AdminPageSimilarEstates.php b/plugin/Gui/AdminPageSimilarEstates.php index bbe537af5..9bcf9cfed 100644 --- a/plugin/Gui/AdminPageSimilarEstates.php +++ b/plugin/Gui/AdminPageSimilarEstates.php @@ -44,7 +44,6 @@ use stdClass; use function __; use function add_action; -use function add_screen_option; use function do_action; use function do_meta_boxes; use function do_settings_sections; @@ -193,7 +192,6 @@ protected function generateAccordionBoxes(FieldsCollection $pFieldsCollection) */ protected function buildForms() { - add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); $pFormModelBuilder = new FormModelBuilderSimilarEstateSettings(); $pFormModel = $pFormModelBuilder->generate($this->getPageSlug()); $this->addFormModel($pFormModel);