-
Bug
-
Resolution: Fixed
-
Minor
-
4.5 regressions, 4.5
In MDL-82715 we introduced providers for the customfield_number that automatically populate the field with some calculated values.
However we made a mistake in the \customfield_number\field_controller::prepare_field_for_display() and it calls the provider too late.
It assumes that every provider has 'decimalplaces' and 'displaywhenzero' properties. And also applies format_string() always, even if provider wants to return some html that should not be cleaned.
To preserve the behavior of the default method we will move format_string() call into the default implementation of the customfield_number\provider_base::prepare_export_value()
- is a regression caused by
-
MDL-82715 Add option for automatically populated values for the 'number' custom field
- Closed