Skip to content

Commit

Permalink
Change tag name length limit in forms from 64 to 128 to match model.
Browse files Browse the repository at this point in the history
  • Loading branch information
shadlaws committed May 17, 2013
1 parent 885a43d commit 8f68071
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/tag/classes/Tag/Controller/Admin/Tags.php
Expand Up @@ -83,7 +83,7 @@ public function action_edit() {
->add("submit", "input|submit", t("Save"));
$form->input
->add_rule("not_empty")
->add_rule("max_length", array(":value", 64), t("Your tag is too long"));
->add_rule("max_length", array(":value", 128), t("Your tag is too long"));

if ($form->load()->validate()) {
$old_name = $tag->name;
Expand Down
2 changes: 1 addition & 1 deletion modules/tag/classes/Tag/Controller/Tags.php
Expand Up @@ -56,7 +56,7 @@ public function action_add() {
"movie" => t("Add tag to movie")
), $item->type))
->add_rule("not_empty")
->add_rule("max_length", array(":value", 64), t("Your tag is too long"));
->add_rule("max_length", array(":value", 128), t("Your tag is too long"));

// If sent, validate and create the tag.
if ($form->load()->validate()) {
Expand Down

0 comments on commit 8f68071

Please sign in to comment.