summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-25 15:18:41 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-25 15:18:41 -0700
commitf8516b55d2f0fcf145bb6c27475d633e8a89ccf8 (patch)
treea80ef070024a835f5bef1268d44cd85532f0cb7d /modules
parent00cd2b646d535e48a21b0b7ceff028ad1bdc2c28 (diff)
Fix for ticket #594. Forced the directory name to be required when editting the album.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/album.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/album.php b/modules/gallery/helpers/album.php
index 0263e0e1..f146bfb3 100644
--- a/modules/gallery/helpers/album.php
+++ b/modules/gallery/helpers/album.php
@@ -104,6 +104,7 @@ class album_Core {
$group->textarea("description")->label(t("Description"))->value($parent->description);
if ($parent->id != 1) {
$group->input("dirname")->label(t("Directory Name"))->value($parent->name)
+ ->rules("required")
->callback("item::validate_no_slashes")
->error_messages("no_slashes", t("The directory name can't contain a \"/\""))
->callback("item::validate_no_trailing_period")