Merge pull request #1229 from vishal-singh-webkul/gli-2042

Fixed: Address created for the hotel should not be accessible to the admin in the AdminAddressController in the back-office.
This commit is contained in:
Rohit Jain
2024-09-30 16:41:14 +05:30
committed by GitHub

View File

@@ -140,6 +140,9 @@ class AdminAddressesControllerCore extends AdminController
'name' => 'email'
),
);
} else if (isset($this->object->id) && $this->object->id_hotel) {
$this->errors[] = Tools::displayError('The object cannot be loaded (or found)');
return false;
}
$this->fields_form = array(