summaryrefslogtreecommitdiff
path: root/modules/tag/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tag/helpers')
-rw-r--r--modules/tag/helpers/tag.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php
index 7e42ed50..b6d39213 100644
--- a/modules/tag/helpers/tag.php
+++ b/modules/tag/helpers/tag.php
@@ -79,11 +79,11 @@ class tag_Core {
}
}
- public static function get_add_form($item_id) {
+ public static function get_add_form($item) {
$form = new Forge(url::site("tags"), "", "post", array("id" => "gAddTagForm"));
$group = $form->group("add_tag")->label(_("Add Tag"));
$group->input("tag_name")->label(_("Add tag"));
- $group->hidden("item_id")->value($item_id);
+ $group->hidden("item_id")->value($item->id);
$group->submit(_("Add"));
$form->add_rules_from(ORM::factory("tag"));
return $form;