diff options
author | Jan Koprowski <jan.koprowski@gmail.com> | 2010-06-16 14:29:28 +0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-16 22:51:39 +0800 |
commit | 1fb33393269d3a1d32048898545c5ef812383f2e (patch) | |
tree | 658d22409d4f22441f2244964b598b8fdee07645 /modules | |
parent | a432a43b3b39fbec70d4cece1eb0ba5625b2679c (diff) |
Fix issue1068. Fill from_id field in photo with indetificator
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/helpers/photo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/photo.php b/modules/gallery/helpers/photo.php index f20d37a3..73cd60c0 100644 --- a/modules/gallery/helpers/photo.php +++ b/modules/gallery/helpers/photo.php @@ -26,7 +26,7 @@ class photo_Core { static function get_edit_form($photo) { $form = new Forge("photos/update/$photo->id", "", "post", array("id" => "g-edit-photo-form")); - $form->hidden("from_id"); + $form->hidden("from_id")->value($photo->id); $group = $form->group("edit_item")->label(t("Edit Photo")); $group->input("title")->label(t("Title"))->value($photo->title) ->error_messages("required", t("You must provide a title")) |