OpenTreeMap / otm-core

OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.
www.opentreemap.org
Other
186 stars 88 forks source link

Fix UDF choice editing helper function (hotfix) #3261

Closed jwalgran closed 5 years ago

jwalgran commented 5 years ago

NOTE: This is a copy of #3259 targeted at the 2.21.4 hotfix branch.

Overview

In the case where choice fields contain numeric values, this helper is called with a number and fails unless we force the value to a string.

Connects https://github.com/OpenTreeMap/otm-clients/issues/441

Testing Instructions

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 83.796% when pulling 437b1d23d7c90cfdf9a283f0dd70a7ccf115453c on jcw/fix-udf-helper into d46202312fca4c36b1e74361699e7b544429bc9a on hotfix/2.21.4.

jwalgran commented 5 years ago

@azavea-bot rebuild