Undefined index: actions

Created on 27 September 2019, over 4 years ago
Updated 1 June 2023, about 1 year ago

Problem/Motivation

Hi! First of all thanks for the great module. I'm using it along with the Read only module β†’ . I got a "Undefined index: actions" error when I turn on the "read only" mode, because the read only module unsets the "actions" index of the form array.

Proposed resolution

The solution would be to check if the "actions" index exists in ResponsivePreviewHandler::ResponsivePreviewHandler():

'#submit' => isset($form['actions']['preview']['#submit']) ? $form['actions']['preview']['#submit'] : [],

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡¬Bulgaria nikolabintev

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024