mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
#PHRAS-325 #time 3h
added parameter "nosubdef" to route "/api/v1/records/add" nb : does NOT prevent creation of subdef if file passes thru the quarantine.
This commit is contained in:
@@ -494,8 +494,7 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
throw new API_V1_exception_badrequest(sprintf('Invalid forceBehavior value `%s`', $request->get('forceBehavior')));
|
||||
break;
|
||||
}
|
||||
|
||||
$app['border-manager']->process($session, $Package, $callback, $behavior);
|
||||
$app['border-manager']->process($session, $Package, $callback, $behavior, $request->get('nosubdef')==='');
|
||||
|
||||
$ret = array(
|
||||
'entity' => null,
|
||||
|
@@ -1412,7 +1412,6 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
||||
$record->delete_data_from_cache(\record_adapter::CACHE_SUBDEFS);
|
||||
|
||||
$record->insertTechnicalDatas($app['mediavorus']);
|
||||
$record->rebuild_subdefs();
|
||||
|
||||
return $record;
|
||||
}
|
||||
|
Reference in New Issue
Block a user