Closed
Bug 608100
Opened 15 years ago
Closed 15 years ago
_validate_is_localizable needs a case for parentless non-English docs
Categories
(support.mozilla.org :: Knowledge Base Software, task, P2)
support.mozilla.org
Knowledge Base Software
Tracking
(Not tracked)
VERIFIED
FIXED
2.3
People
(Reporter: erik, Assigned: erik)
Details
(Whiteboard: [qa-])
...and it should assert that is_localizable==False.
Comment 1•15 years ago
|
||
Doesn't Document.save enforce that if locale != default, set is_localizable=False, anyway?
Assignee: nobody → erik
| Assignee | ||
Comment 2•15 years ago
|
||
No, but that's a good idea.
| Assignee | ||
Comment 3•15 years ago
|
||
clean() did, but save() didn't. Does now.
Comment 4•15 years ago
|
||
Is there something I can do through the UI to test this patch?
| Assignee | ||
Comment 5•15 years ago
|
||
Not that I know of; this is mostly a check against potential bad migrations (or any other non-form code that calls save() without calling clean() first). Paul and I noticed the need together, but I don't recall the specific situation anymore. The idea, of course, is that any call to Document.save() on a non-English doc with is_localizable=True should cause is_localizable to be set to False--which is just what the unit test does.
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [qa-]
| Assignee | ||
Comment 6•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•