mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +00:00
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:
@@ -522,10 +522,11 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
|
||||
/**
|
||||
*
|
||||
* @param collection $collection
|
||||
* @param appbox $appbox
|
||||
* @param appbox $appbox WTF this parm is useless
|
||||
* @return record_adapter
|
||||
*
|
||||
*/
|
||||
public function move_to_collection(collection $collection, appbox $appbox)
|
||||
public function move_to_collection(collection $collection, appbox $appbox = null)
|
||||
{
|
||||
if ($this->getCollection()->get_base_id() === $collection->get_base_id()) {
|
||||
return $this;
|
||||
|
Reference in New Issue
Block a user