Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Fallback code to get taxonomy id from get parameters if it's missing from post, include taxonomy_id option for category page query
givanz6b5d30b3ba95
diff --git a/admin/controller/content/categories.php b/admin/controller/content/categories.phpindex c481329..f7cd97c 100755--- a/admin/controller/content/categories.php+++ b/admin/controller/content/categories.php@@ -52,7 +52,8 @@ class Categories extends Base {}function add() {- $data = $this->request->post;+ $data = $this->request->post;+ $data['taxonomy_id'] = $data['taxonomy_id'] ?? $this->request->get['taxonomy_id'];$categories = new categorySQL();@@ -86,13 +87,13 @@ class Categories extends Base {$page = $this->request->get['page'] ?? 1;$type = $this->request->get['type'] ?? 1;+ $taxonomy_id = $this->request->get['taxonomy_id'];$limit = 1000;- $taxonomy_id = 1;$options = ['start' => ($page - 1) * $limit,'limit' => $limit,- //'taxonomy_id' => $taxonomy_id,+ 'taxonomy_id' => $taxonomy_id,'post_type' => $type,'type' => 'categories',] + $this->global;