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/movie.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/movie.php')
-rw-r--r-- | modules/gallery/helpers/movie.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/movie.php b/modules/gallery/helpers/movie.php index 2190fc94..98419387 100644 --- a/modules/gallery/helpers/movie.php +++ b/modules/gallery/helpers/movie.php @@ -135,6 +135,7 @@ class movie_Core { $group->input("title")->label(t("Title"))->value($movie->title); $group->textarea("description")->label(t("Description"))->value($movie->description); $group->input("filename")->label(t("Filename"))->value($movie->name) + ->rules("required") ->error_messages( "name_conflict", t("There is already a movie, photo or album with this name")) ->callback("item::validate_no_slashes") |