Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changes to support updating the child elements within an album. In th…

…is 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'
  • Loading branch information...
commit 5467e21e8b9941a2b64aa093c0cf0f591ef5ca82 1 parent 9314533
Tim Almdal authored
78  modules/gallery/helpers/item_rest.php
@@ -88,35 +88,91 @@ static function put($request) {
12  modules/gallery/helpers/items_rest.php
@@ -19,10 +19,12 @@
@@ -41,4 +43,12 @@ static function get($request) {
2  modules/rest/controllers/rest.php
@@ -46,7 +46,7 @@ public function __call($function, $args) {
46 46
       $request->params = (object) $input->get();
47 47
       break;
48 48
 
49  
-    case "post":
  49
+    default:
50 50
       $request->params = (object) $input->post();
51 51
       if (isset($_FILES["file"])) {
52 52
         $request->file = upload::save("file");

0 notes on commit 5467e21

Please sign in to comment.
Something went wrong with that request. Please try again.