Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

    •  
      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
    41805
    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
    Referenced by request #40066

    Follow-ups