diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-01-24 18:13:26 -0500 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-01-24 18:13:26 -0500 |
commit | 727a595447ebd331db199f34620d7e037415b582 (patch) | |
tree | b3788a8519b3700b232c31f05aeecc9f051a066d /modules | |
parent | da5fbd10c7a99f4800b3b948ad2799f916227c54 (diff) |
Add back a comment that I accidentally removed in the last commit.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/organize/controllers/organize.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php index 37920020..9e5bce84 100644 --- a/modules/organize/controllers/organize.php +++ b/modules/organize/controllers/organize.php @@ -128,6 +128,8 @@ class Organize_Controller extends Controller { access::required("edit", $album); if ($album->sort_column != "weight") { + // Force all the weights into the current order before changing the order to manual + // @todo: consider making this a trigger in the Item_Model. item::resequence_child_weights($album); $album->sort_column = "weight"; $album->sort_order = "ASC"; |