Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Fixed filters

givanz20bcde17a190
diff --git a/admin/controller/content/edit.php b/admin/controller/content/edit.php
index c0b31a2..be173d8 100644
--- a/admin/controller/content/edit.php
+++ b/admin/controller/content/edit.php
@@ -54,7 +54,7 @@ class Edit extends Base {
$options = [];
if (Admin::hasCapability('edit_other_sites')) {
- unset($options['site_id']);
+ //unset($options['site_id']);
} else {
$options['site_id'] = Admin :: siteAccess();
}
diff --git a/admin/controller/editor/revisions.php b/admin/controller/editor/revisions.php
index 7d96807..4f15583 100644
--- a/admin/controller/editor/revisions.php
+++ b/admin/controller/editor/revisions.php
@@ -79,6 +79,8 @@ class Revisions extends Base {
$this->response->setType('text');
$this->response->output(file_get_contents($file));
}
+ } else {
+ die(__('Invalid request!'));
}
}
diff --git a/admin/controller/product/products.php b/admin/controller/product/products.php
index ce97ee6..e3c2e94 100755
--- a/admin/controller/product/products.php
+++ b/admin/controller/product/products.php
@@ -72,6 +72,9 @@ class Products extends Base {
$products = new ProductSQL();
$this->filter = array_filter($this->request->get['filter'] ?? []);
+
+ if (isset($this->filter['vendor_id'])) $this->filter['vendor_id'] = [$this->filter['vendor_id']];
+ if (isset($this->filter['manufacturer_id'])) $this->filter['manufacturer_id'] = [$this->filter['manufacturer_id']];
$options = [
'type' => $this->type,