diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-10-11 11:16:07 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-10-11 11:16:07 -0700 |
commit | bc63e4fcf95d1626341a2dedc72e2e516aed673c (patch) | |
tree | 44ce6bfa06cf90fc2c9a15505e4588ad063fb092 /modules/gallery/helpers/photo.php | |
parent | 80bb78fa4ef3fe718cdee56fc98d5584dcd7d5b2 (diff) |
Make the slug field required for all items.
Make the filename field required for photos/movies.
Fixes ticket #838
Diffstat (limited to 'modules/gallery/helpers/photo.php')
-rw-r--r-- | modules/gallery/helpers/photo.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/photo.php b/modules/gallery/helpers/photo.php index 692f7111..99f28753 100644 --- a/modules/gallery/helpers/photo.php +++ b/modules/gallery/helpers/photo.php @@ -163,6 +163,7 @@ class photo_Core { $group->input("title")->label(t("Title"))->value($photo->title); $group->textarea("description")->label(t("Description"))->value($photo->description); $group->input("filename")->label(t("Filename"))->value($photo->name) + ->rules("required") ->error_messages( "name_conflict", t("There is already a movie, photo or album with this name")) ->callback("item::validate_no_slashes") |