Merge pull request #407 from abhishek-webkul/gli-844

Fix loading of unnecessary media files in back-office manage room types page
This commit is contained in:
Rohit Jain
2022-10-12 17:38:52 +05:30
committed by GitHub

View File

@@ -1590,7 +1590,9 @@ class AdminProductsControllerCore extends AdminController
_PS_JS_DIR_.'admin/products.js',
));
if ($this->display == 'edit' || $this->display == 'add') {
if (in_array($this->display, array('add', 'edit'))
&& $this->tabAccess[$this->display] == '1'
) {
$this->addJqueryUI(array(
'ui.core',
'ui.widget'