Substitution enhancement

This commit is contained in:
Romain Neutron
2012-01-09 20:07:57 +01:00
parent 0228edec5d
commit ded3cdb3cc
3 changed files with 115 additions and 356 deletions

View File

@@ -137,7 +137,8 @@ class lazaretFile
$pathfile = $registry->get('GV_RootPath') . 'tmp/lazaret/' . $this->filepath;
$record = new record_adapter($sbas_id, $record_id);
p4file::substitute($record, $pathfile, $this->filename, false);
$record->substitute_subdef('document', new system_file($pathfile));
$this->delete();
return $this;