mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
Merge pull request #2657 from aynsix/PHRAS-2124-api-substitute-update-subview
PHRAS-2124 api substitute update subview when substitute is the "document"
This commit is contained in:
@@ -1044,7 +1044,7 @@ class V1Controller extends Controller
|
||||
$adapt = ($request->get('adapt')===null || !(\p4field::isno($request->get('adapt'))));
|
||||
$ret['adapt'] = $adapt;
|
||||
if($request->get('name') == 'document') {
|
||||
$this->getSubdefSubstituer()->substituteDocument($record, $media, $adapt);
|
||||
$this->getSubdefSubstituer()->substituteDocument($record, $media);
|
||||
} else {
|
||||
$this->getSubdefSubstituer()->substituteSubdef($record, $request->get('name'), $media, $adapt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user