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'

This commit is contained in:
Tim Almdal
2010-03-13 08:16:37 -08:00
parent 8715f602bd
commit b7786fe9a3
3 changed files with 78 additions and 12 deletions
+1 -1
View File
@@ -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");