Skip to content

Commit

Permalink
Merge pull request #407 from abhishek-webkul/gli-844
Browse files Browse the repository at this point in the history
Fix loading of unnecessary media files in back-office manage room types page
  • Loading branch information
rohit053 authored Oct 12, 2022
2 parents cb9b6eb + 66271c3 commit 6d20cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/admin/AdminProductsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,9 @@ public function postProcess()
_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'
Expand Down

0 comments on commit 6d20cfe

Please sign in to comment.