summaryrefslogtreecommitdiff
path: root/modules/organize/controllers/organize.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/organize/controllers/organize.php')
-rw-r--r--modules/organize/controllers/organize.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php
index 1fec6c9b..4639777c 100644
--- a/modules/organize/controllers/organize.php
+++ b/modules/organize/controllers/organize.php
@@ -47,7 +47,7 @@ class Organize_Controller extends Controller {
$target_album = ORM::factory("item", $target_album_id);
foreach ($this->input->post("source_ids") as $source_id) {
$source = ORM::factory("item", $source_id);
- if (!$source->is_descendant($target_album_)) {
+ if (!$source->contains($target_album)) {
item::move($source, $target_album);
}
}