diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-09-10 10:28:43 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-09-10 10:28:43 -0700 |
| commit | 752c85711659eb7f83e6556665175266db8f24f5 (patch) | |
| tree | 92fb88c313205b70c6bc8a1cd100c57d6f8c48cc /modules/organize/controllers | |
| parent | b550a060450923b5c02d531d33785b5c9eb0d3e9 (diff) | |
Rename ORM_MPTT::is_descendant() to ORM_MPTT::contains() to make the
API a little clearer. Write a test for it, too.
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 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); } } |
