diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-10 10:09:09 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-10 10:09:09 -0700 |
| commit | 2bbe162339075d385431029c713c48c9f6b92639 (patch) | |
| tree | d5457a0b3a70b2b536256180ba29670081a066c4 /modules/organize/controllers | |
| parent | bea89be268f242a381e77f94f44b8bdbf3f90ff9 (diff) | |
A better fix for #741... the original problem was that the source and album variables were reversed
Diffstat (limited to 'modules/organize/controllers')
| -rw-r--r-- | modules/organize/controllers/organize.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php index 0611c334..99563327 100644 --- a/modules/organize/controllers/organize.php +++ b/modules/organize/controllers/organize.php @@ -47,7 +47,7 @@ class Organize_Controller extends Controller { $album = ORM::factory("item", $album_id); foreach ($this->input->post("source_ids") as $source_id) { $source = ORM::factory("item", $source_id); - if ($album->id != $source->parent_id && $album->id != $source->id) { + if (!$source->is_descendant($album)) { item::move($source, $album); } } |
