diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-07-10 11:45:45 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-07-10 11:45:45 -0700 |
commit | 307e47c3d01c1bbbe294b8339a2f531a5156eb90 (patch) | |
tree | d82cda990858b6dde9b498b9dd10ff9a37477f76 /modules/gallery/helpers/album.php | |
parent | 4c77f9ebdeb3796b4bb20282d414df8c879d25d7 (diff) |
Pass along the from_id when editing albums in the context menu, and
also pass it along in the form creation code. This fixes ticket #1183.
Diffstat (limited to 'modules/gallery/helpers/album.php')
-rw-r--r-- | modules/gallery/helpers/album.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/album.php b/modules/gallery/helpers/album.php index 0baae631..0ac5e8b0 100644 --- a/modules/gallery/helpers/album.php +++ b/modules/gallery/helpers/album.php @@ -58,7 +58,7 @@ class album_Core { static function get_edit_form($parent) { $form = new Forge( "albums/update/{$parent->id}", "", "post", array("id" => "g-edit-album-form")); - $form->hidden("from_id"); + $form->hidden("from_id")->value($parent->id); $group = $form->group("edit_item")->label(t("Edit Album")); $group->input("title")->label(t("Title"))->value($parent->title) |