Closed Bug 491095 Opened 15 years ago Closed 15 years ago

Consider adding a character limit to collection names

Categories

(addons.mozilla.org Graveyard :: Collections, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: jbalogh)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached image long add-on name
Collection names have no character limit.Please,consider adding one.
See screenshot for reason.
Let's make it the same as add-on names.
Assignee: nobody → jbalogh
This is incomplete, but I wanted to hear what you think before I go too far down this road.

I'd like to move the invalidFields function to app_model, so all models can do the clean_$field trick.

There's still too much separation between validation and error messages; the validator function is the best place to set error messages.

Putting all this in models is wrong, but it's the easiest place to start since all the other validation is attached to models.
Attachment #376081 - Flags: review?(clouserw)
Attachment #376081 - Attachment is obsolete: true
Attachment #376093 - Flags: review?(clouserw)
Attachment #376081 - Flags: review?(clouserw)
Comment on attachment 376093 [details] [diff] [review]
moving the error messages to the validator function

Works for me if you add ___()
Attachment #376093 - Flags: review?(clouserw) → review+
r25399
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: push-needed
Resolution: --- → FIXED
Jeff: I think your validation method is good, but you should put it into app_model.php. We already have a (much more complicated, inported from the cake guys) validation method in there and we should not duplicate that code.
Blocks: 492447
Filed related bug  Bug 492461

Marking this bug as verified.
Status: RESOLVED → VERIFIED
removing "push-needed" from 105 AMO 5.0.6 bugs; filter on "I hate stephend!"
Keywords: push-needed
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: