OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.
The management page was allowing the Tree ID field to be hidden, but was not rendering the option in the hidden field list so that it could be shown again. We have corrected the _should_show_field predicate function and corrected the model argument passed to it so that the Tree ID field is correctly shown in the disabled field list.
Coverage remained the same at 83.796% when pulling a2e3cdae25726152757fd15771cd3df5129a3b8a on jcw/hidden-tree-id-can-be-shown into dc0428c468707a38ea41176204b527b1832e9a8d on hotfix/2.21.5.
Overview
The management page was allowing the Tree ID field to be hidden, but was not rendering the option in the hidden field list so that it could be shown again. We have corrected the
_should_show_field
predicate function and corrected the model argument passed to it so that the Tree ID field is correctly shown in the disabled field list.Connects #3264 Depends on https://github.com/OpenTreeMap/otm-cloud/pull/467
Demo
Testing Instructions
tree-id-show-and-hide-test