mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-08 10:34:34 +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,
|
||||
|
Reference in New Issue
Block a user