// Empty address cache on update #PSCFV-4534
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17641 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -175,6 +175,17 @@ class AddressCore extends ObjectModel
|
|||||||
Customer::resetAddressCache($this->id_customer);
|
Customer::resetAddressCache($this->id_customer);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function update($null_values = false)
|
||||||
|
{
|
||||||
|
// Empty related caches
|
||||||
|
if (isset(self::$_idCountries[$this->id]))
|
||||||
|
unset(self::$_idCountries[$this->id]);
|
||||||
|
if (isset(self::$_idZones[$this->id]))
|
||||||
|
unset(self::$_idZones[$this->id]);
|
||||||
|
|
||||||
|
return parent::update($null_values);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see ObjectModel::delete()
|
* @see ObjectModel::delete()
|
||||||
|
|||||||
Reference in New Issue
Block a user