summaryrefslogtreecommitdiff
path: root/modules/gallery/models
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-10-11 11:16:07 -0700
committerBharat Mediratta <bharat@menalto.com>2009-10-11 11:16:07 -0700
commitbc63e4fcf95d1626341a2dedc72e2e516aed673c (patch)
tree44ce6bfa06cf90fc2c9a15505e4588ad063fb092 /modules/gallery/models
parent80bb78fa4ef3fe718cdee56fc98d5584dcd7d5b2 (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/models')
-rw-r--r--modules/gallery/models/item.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php
index 246d5fcd..6499fd2d 100644
--- a/modules/gallery/models/item.php
+++ b/modules/gallery/models/item.php
@@ -24,7 +24,8 @@ class Item_Model extends ORM_MPTT {
var $rules = array(
"name" => "required|length[0,255]",
"title" => "required|length[0,255]",
- "description" => "length[0,65535]"
+ "description" => "length[0,65535]",
+ "slug" => "required|length[0,255]"
);
/**