Attachment array keys not always available

Created on 12 June 2023, over 1 year ago
Updated 13 June 2023, over 1 year ago

Problem/Motivation

This is a follow-up error from 📌 Enhance download of ticket attachments Fixed where we introduced download_headers and method as attachment headers to be used in \Drupal\helpdesk_integration\PluginBase::downloadAndGetAttachmentValues. But most plugins don't provide those values which leads to exceptions in Guzzle. Also, existing attachments don't have those values either.

Proposed resolution

Use default values if not present.

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024