summaryrefslogtreecommitdiff
path: root/modules/tag/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-04 22:58:18 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-04 22:58:18 +0000
commit3381f1d01a09a3846dd8984f6fbf6f8eeb40a5b1 (patch)
treec92f4bced98e93e7c39aa0440e4c075eb51ac27e /modules/tag/helpers
parent99804a34b2440589e91d5fe06f8b39b44d6561f2 (diff)
Put up an error if you try to reuse an existing tag name
Diffstat (limited to 'modules/tag/helpers')
-rw-r--r--modules/tag/helpers/tag.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php
index fac2ab70..897d4d13 100644
--- a/modules/tag/helpers/tag.php
+++ b/modules/tag/helpers/tag.php
@@ -89,6 +89,7 @@ class tag_Core {
$form = new Forge("admin/tags/rename/$tag->id", "", "post", array("id" => "gRenameTagForm"));
$group = $form->group("rename_tag")->label(_("Rename Tag"));
$group->input("name")->label(_("Tag name"))->value($tag->name);
+ $group->inputs["name"]->error_messages("in_use", _("There is already a tag with that name"));
$group->submit(_("Rename"));
$form->add_rules_from(ORM::factory("tag"));
return $form;