Fix a bug where organize doesn't properly generate the tree at the root album.

This commit is contained in:
Bharat Mediratta
2009-08-29 11:29:38 -07:00
parent 4408ed0684
commit 775987dff9
2 changed files with 8 additions and 3 deletions

View File

@@ -10,8 +10,7 @@
<ul class="ui-icon-plus">
<? endforeach ?>
<? if ($parent->id == $album->parent_id): ?>
<? foreach ($parent->children(null, 0, array("type" => "album")) as $peer): ?>
<? foreach ($peers as $peer): ?>
<li class="gOrganizeAlbum ui-icon-left <?= access::can("edit", $peer) ? "" : "gViewOnly" ?>"
ref="<?= $peer->id ?>">
<span class="ui-icon <?= $peer->id == $album->id ? "ui-icon-minus" : "ui-icon-plus" ?>">
@@ -38,7 +37,6 @@
<? endif ?>
</li>
<? endforeach ?>
<? endif ?>
<? foreach ($parents as $parent): ?>
</ul>