•  
      request #40066 TypeError: Cannot access offset of type string on string
    Infos
    #40066
    Nicolas Terray (nterray)
    2024-10-24 11:51
    2024-10-11 08:48
    41693
    Details
    TypeError: Cannot access offset of type string on string

    When a text field has the following changelog entry:

    [
        'fieldId'    => 'customfield_10081',
        'from'       => null,
        'fromString' => null,
        'to'         => '',
        'toString'   => 'lorem ipsum',
    ]
    

    Then its corresponding snapshot will be mapped to a list value. This value (an array) will be then cast as a string (since it is originaly a text field) and PHP emits a TypeError.

    Jira import
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Nicolas Terray (nterray)
    Closed
    2024-10-24
    Attachments
    Empty
    References

    Follow-ups