diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-03-13 08:16:37 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-03-13 08:39:06 -0800 |
commit | 5467e21e8b9941a2b64aa093c0cf0f591ef5ca82 (patch) | |
tree | 28d2d43ef5ea4cfba2cf177371ce0bf2d8961591 /modules/rest/controllers | |
parent | 931453304805b59751c5d3dffef42b8692b6fe65 (diff) |
Changes to support updating the child elements within an album. In this change the urls of the children are sent up asan array of post fields children[0].... children[n]. If an existing child is not included it is deleted. Including a url to an child in another album will move the child. Changing the order of the children will respect the order of the children, if the sort column is 'weight'
Diffstat (limited to 'modules/rest/controllers')
-rw-r--r-- | modules/rest/controllers/rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php index eed54bd4..7a9e3b0b 100644 --- a/modules/rest/controllers/rest.php +++ b/modules/rest/controllers/rest.php @@ -46,7 +46,7 @@ class Rest_Controller extends Controller { $request->params = (object) $input->get(); break; - case "post": + default: $request->params = (object) $input->post(); if (isset($_FILES["file"])) { $request->file = upload::save("file"); |