Problem/Motivation

Currently the value of fields is typed if the value is deemed numeric (is_numeric()).
This is done in _views_geojson_render_fields().
Unfortunately this can lead to unwanted results e.g. when dealing with phone numbers: +16153526085 becomes 16153526085 as it is recognized as a number.

Proposed resolution

To maintain backward compatibility I suggest we add an option that allows to exclude fields from the data typing in the style settings.

Remaining tasks

Reviews needed.

User interface changes

New configuration setting in the style settings.

API changes

None.

Data model changes

None.

Comments

das-peter created an issue. See original summary.

  • Pol committed f9b3a6f on 7.x-1.x authored by das-peter
    Issue #2992229 by das-peter: Allow disabling the data typing of field...
pol’s picture

Status: Needs review » Fixed

7.x branch updated and this is now fixed.

Please give me some feedback on how it goes and I'll tag a release.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.