Opened 13 years ago

Closed 12 years ago

#17328 closed Bug (fixed)

OpenLayersWidget needs _has_changed() method

Reported by: django@… Owned by: nobody
Component: GIS Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The OpenLayersWidget does not currently define a custom _has_changed() method. This leads to the problem that it will always report a relevant form field as having been changed, even when that is not the case (the initial value is usually a geometry object, where as the data for comparison is a string.

Many widgets overload _has_changed(), providing a custom method of testing equivalence, but this appears to have been forgotten for OpenLayersWidget.

Attachments (1)

ticket17328.patch (3.2 KB ) - added by django@… 13 years ago.
has_changed for OpenLayersWidget

Download all attachments as: .zip

Change History (4)

by django@…, 13 years ago

Attachment: ticket17328.patch added

has_changed for OpenLayersWidget

comment:1 by django@…, 13 years ago

Has patch: set

comment:2 by Aymeric Augustin, 13 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Claude Paroz <claude@…>, 12 years ago

Resolution: fixed
Status: newclosed

In [9c096ab981d57123a0774f9ddf229084e0bb54a1]:

Fixed #17328 -- Added OpenLayersWidget _has_changed method

Thanks Will Hardy for the report and the patch.

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