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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user