Just because it's a warning, does not mean it does not need to be resolved. This causes many issues when trying to develop 3rd party add-ons. The issue, at least for me, is that when using a Hidden Product field, the value is an array. In GFCommon:get_lead_field_display there is no case statement for the hiddenproduct field, and it uses the default case, which is to send the value to nl2br. Hidden's product is an array, not a string, so this is a BUG in gravity forms, not an warning that should be ignored.
Please just have the devs add a check before calling nl2br to determine if the value they are sending to the function is a valid value.
Posted 12 years ago on Saturday February 11, 2012 |
Permalink