[-] BO : tab cache wasn't emptied on delete #PSCFV-9053
This commit is contained in:
@@ -140,7 +140,11 @@ class TabCore extends ObjectModel
|
||||
public function delete()
|
||||
{
|
||||
if (Db::getInstance()->execute('DELETE FROM '._DB_PREFIX_.'access WHERE `id_tab` = '.(int)$this->id) && parent::delete())
|
||||
{
|
||||
if (is_array(self::$_getIdFromClassName) && isset(self::$_getIdFromClassName[strtolower($this->class_name)]))
|
||||
unset(self::$_getIdFromClassName[strtolower($this->class_name)]);
|
||||
return $this->cleanPositions($this->id_parent);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user