Opened 11 years ago

Closed 11 years ago

#20039 closed Bug (fixed)

_has_changed broken for TypedChoiceFields

Reported by: Florian Apolloner Owned by: Claude Paroz <claude@…>
Component: Forms Version: dev
Severity: Release blocker Keywords: regression, forms, has_changed
Cc: Claude Paroz Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


See the attached test, if the field is required _has_changed will return early…

Attachments (2)

_has_changed_failure.diff (726 bytes ) - added by Florian Apolloner 11 years ago.
20039-1.diff (4.3 KB ) - added by Claude Paroz 11 years ago.

Download all attachments as: .zip

Change History (6)

by Florian Apolloner, 11 years ago

Attachment: _has_changed_failure.diff added

comment:1 by Claude Paroz, 11 years ago

#19643 is related. There is basically something wrong with to_python calling super.validate while self.validate is a noop.

by Claude Paroz, 11 years ago

Attachment: 20039-1.diff added

comment:2 by Claude Paroz, 11 years ago

Has patch: set
Version: 1.5master

comment:3 by Florian Apolloner, 11 years ago

Triage Stage: AcceptedReady for checkin

The attached patch fixes my issues on the live site :)

comment:4 by Claude Paroz <claude@…>, 11 years ago

Owner: set to Claude Paroz <claude@…>
Resolution: fixed
Status: newclosed

In 9883551d50e105b324d8071232bf420935844e43:

Fixed #20039 -- Fixed has_changed form detection for required TypedChoiceFields

Thanks Florian Apolloner for the report and the review.
Also fixes #19643.

Note: See TracTickets for help on using tickets.
Back to Top