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)

task

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: erik, Assigned: erik)

Details

(Whiteboard: [qa-])

...and it should assert that is_localizable==False.
Doesn't Document.save enforce that if locale != default, set is_localizable=False, anyway?
Assignee: nobody → erik
No, but that's a good idea.
clean() did, but save() didn't. Does now.
Is there something I can do through the UI to test this patch?
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.
Whiteboard: [qa-]
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Closed as [qa-]
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.