From 3381f1d01a09a3846dd8984f6fbf6f8eeb40a5b1 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 4 Jan 2009 22:58:18 +0000 Subject: Put up an error if you try to reuse an existing tag name --- modules/tag/helpers/tag.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/tag/helpers') 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; -- cgit v1.2.3