diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-25 15:18:41 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-25 15:18:41 -0700 |
commit | f8516b55d2f0fcf145bb6c27475d633e8a89ccf8 (patch) | |
tree | a80ef070024a835f5bef1268d44cd85532f0cb7d | |
parent | 00cd2b646d535e48a21b0b7ceff028ad1bdc2c28 (diff) |
Fix for ticket #594. Forced the directory name to be required when editting the album.
-rw-r--r-- | modules/gallery/helpers/album.php | 1 |
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") |