summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-15 11:40:01 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-15 11:40:01 -0700
commit207f6beb61cf2969d07bbc6f959bba967f54b271 (patch)
treeab3645c573e16e4466216ed95f4b128b30139812
parent00c4cb3f6399319326cd3393ee2f15fc8b111088 (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.php2
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);