Fix story picture definition

This commit is contained in:
Romain Neutron
2012-09-14 11:43:08 +02:00
parent b5079ffacf
commit a8209d8c1c
3 changed files with 20 additions and 10 deletions

View File

@@ -1053,7 +1053,7 @@ class record_adapter implements record_Interface, cache_cacheableInterface
$subdef_def = $this->get_databox()->get_subdef_structure()->get_subdef($type, $name);
if ($this->has_subdef($name) && ! $this->get_subdef($name)->is_substituted()) {
if ($this->has_subdef($name) && $this->get_subdef($name)->is_physically_present()) {
$path_file_dest = $this->get_subdef($name)->get_pathfile();
$this->get_subdef($name)->remove_file();