diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-08-30 14:40:55 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-30 14:40:55 -0700 |
| commit | c615918829fae1496a09886ef929869fce9b9f6a (patch) | |
| tree | 98727ea88312652d4f0ea6a4181b0d5b7da2f0e2 /modules/organize/controllers/organize.php | |
| parent | d1ade6620e814ecf536dfde17c95593a311d1c2c (diff) | |
Manage the selection so we don't automatically select an album
whenever we expand a tree.
Diffstat (limited to 'modules/organize/controllers/organize.php')
| -rw-r--r-- | modules/organize/controllers/organize.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php index 24e5bf97..22f106e9 100644 --- a/modules/organize/controllers/organize.php +++ b/modules/organize/controllers/organize.php @@ -136,7 +136,7 @@ class Organize_Controller extends Controller { $album = ORM::factory("item", $album_id); access::required("view", $album); - print self::_expanded_tree($album, $album); + print self::_expanded_tree($album); } /** @@ -144,7 +144,7 @@ class Organize_Controller extends Controller { * include albums along the descendant hierarchy that includes the selected album, and the * immediate child albums. */ - private static function _expanded_tree($root, $selected_album) { + private static function _expanded_tree($root, $selected_album=null) { $v = new View("organize_tree.html"); $v->album = $root; $v->selected = $selected_album; |
