Skip to content
Snippets Groups Projects
  • Jared Hancock's avatar
    cc584e58
    forms: Fix crash if selection-field not set · cc584e58
    Jared Hancock authored
    If a custom list item were added to an email template, and there is no data
    for the field (ie. the field is not required) when the template is rendered,
    the system would crash.
    
    toString() is required to return a string, no matter what. This patch
    cascades the (string) coercion to the current value of the list field if it
    is not an instance of a DynamicListItem
    cc584e58
    History
    forms: Fix crash if selection-field not set
    Jared Hancock authored
    If a custom list item were added to an email template, and there is no data
    for the field (ie. the field is not required) when the template is rendered,
    the system would crash.
    
    toString() is required to return a string, no matter what. This patch
    cascades the (string) coercion to the current value of the list field if it
    is not an instance of a DynamicListItem