Fix story default image

This commit is contained in:
Romain Neutron
2012-01-25 12:49:32 +01:00
parent d2b5846de6
commit 7e0adec7a4

View File

@@ -1105,8 +1105,20 @@ class record_adapter implements record_Interface, cache_cacheableInterface
$stmt->execute(array(':record_id' => $this->get_record_id()));
$stmt->closeCursor();
try
{
$subdef = $this->get_subdef($name);
$subdef->delete_data_from_cache();
}
catch(Exception $e)
{
}
$this->delete_data_from_cache(self::CACHE_SUBDEFS);
if ($meta_writable)
{
$this->write_metas();