FotowebBrowserForm buildActions should declare #type = 'actions'

Created on 27 October 2023, 8 months ago

Problem/Motivation

With Drupal 10 and PHP 8.1 we will get a warning if you use Fotoweb with the Media Library. Since the media library is loaded AJAX based, this warning will prevent the modal to be opening, when you're environment exposes warnings, like in your local environment.

It only happens when using the GIN admin theme.

Steps to reproduce

* Install Gin
* Install media_fotoweb
* Configure a content type with media field and media library

Proposed resolution

Declare $actions['#type'] = 'actions';, because every element needs to have a type, that is not a list.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany szeidler Berlin

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

Comments & Activities

Production build 0.69.0 2024