change : removed "/setmetadatas" from route, the http verb "PATCH" on "record" entity is ok

fix : unknown field now throws exception (no more erase all...)
add : set "base_id":x to change collection
cleanup : removed unused parm to recordadapter::move_to_collection()
This commit is contained in:
jygaulier
2020-06-22 14:40:27 +02:00
parent 013c0c8dac
commit 18f7a658ed
8 changed files with 34 additions and 23 deletions

View File

@@ -242,7 +242,7 @@ class RecordController extends Controller
$this->getEventDispatcher()->dispatch(RecordEvents::DELETE, new DeleteEvent($record));
} else {
// move to trash collection
$record->move_to_collection($trashCollectionsBySbasId[$sbasId], $this->getApplicationBox());
$record->move_to_collection($trashCollectionsBySbasId[$sbasId]);
// disable permalinks
foreach($record->get_subdefs() as $subdef) {
if( ($pl = $subdef->get_permalink()) ) {