mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Fix a bug where organize doesn't properly generate the tree at the root album.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user