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/movie.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/movie.php')
-rw-r--r-- | modules/gallery/helpers/movie.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/movie.php b/modules/gallery/helpers/movie.php index 6333eaf2..bbb5b66c 100644 --- a/modules/gallery/helpers/movie.php +++ b/modules/gallery/helpers/movie.php @@ -26,7 +26,7 @@ class movie_Core { static function get_edit_form($movie) { $form = new Forge("movies/update/$movie->id", "", "post", array("id" => "g-edit-movie-form")); - $form->hidden("from_id"); + $form->hidden("from_id")->value($movie->id); $group = $form->group("edit_item")->label(t("Edit Movie")); $group->input("title")->label(t("Title"))->value($movie->title) ->error_messages("required", t("You must provide a title")) |