diff --git a/core/components/minishop3/controllers/product/create.class.php b/core/components/minishop3/controllers/product/create.class.php index c2af4ac..31ec4e9 100644 --- a/core/components/minishop3/controllers/product/create.class.php +++ b/core/components/minishop3/controllers/product/create.class.php @@ -132,7 +132,7 @@ public function loadCustomCssJs() 'xtype' => 'ms3-page-product-create', 'resource' => $this->resource->get('id'), 'record' => $this->resourceArray, - 'publish_document' => $this->canPublish, + 'publish_document' => (int) $this->canPublish, 'canSave' => (int) ($this->canSave && $this->modx->hasPermission('msproduct_save')), 'show_tvs' => (int) !empty($this->tvCounts), 'mode' => 'create', diff --git a/core/components/minishop3/src/Processors/Category/Create.php b/core/components/minishop3/src/Processors/Category/Create.php index 6ae89e6..0c50c72 100644 --- a/core/components/minishop3/src/Processors/Category/Create.php +++ b/core/components/minishop3/src/Processors/Category/Create.php @@ -30,6 +30,15 @@ public function prepareAlias() } + /** + * @return void + */ + public function handleCheckBoxes() + { + parent::handleCheckBoxes(); + $this->setCheckbox('hide_children_in_tree'); + } + /** * @return bool */ diff --git a/core/components/minishop3/src/Processors/Category/Update.php b/core/components/minishop3/src/Processors/Category/Update.php index 0b4810c..0b38694 100644 --- a/core/components/minishop3/src/Processors/Category/Update.php +++ b/core/components/minishop3/src/Processors/Category/Update.php @@ -53,6 +53,15 @@ public function checkFriendlyAlias() } + /** + * @return void + */ + public function handleCheckBoxes() + { + parent::handleCheckBoxes(); + $this->setCheckbox('hide_children_in_tree'); + } + /** * @return bool */