diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-15 11:40:01 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-15 11:40:01 -0700 |
commit | 207f6beb61cf2969d07bbc6f959bba967f54b271 (patch) | |
tree | ab3645c573e16e4466216ed95f4b128b30139812 | |
parent | 00c4cb3f6399319326cd3393ee2f15fc8b111088 (diff) |
Only change the weights of the album children if the item sort_column is set to weight.
-rw-r--r-- | modules/gallery/helpers/item_rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/item_rest.php b/modules/gallery/helpers/item_rest.php index 763e586f..0839b144 100644 --- a/modules/gallery/helpers/item_rest.php +++ b/modules/gallery/helpers/item_rest.php @@ -128,7 +128,7 @@ class item_rest_Core { } $item->save(); - if (isset($request->params->members)) { + if (isset($request->params->members) && $item->sort_column == "weight") { $weight = 0; foreach ($request->params->members as $url) { $child = rest::resolve($url); |