Getting error when comparing revisions using split fields

Created on 16 October 2024, about 1 month ago

Problem/Motivation

Getting error when comparing revisions using split fields

Steps to reproduce

Go to a revision page like "node/78151/revisions"
Click on "Compare Select Revisions". It will take to node/78151/revisions/view/756636/758676/split_fields
Blank screen will come.
Below error will show in local envirionments.
Undefined array key 10 /app/docroot/modules/contrib/diff/src/Controller/pluginRevisionController.php on line 266
Undefined array key 11 /app/docroot/modules/contrib/diff/src/Controller/pluginRevisionController.php on line 266

Proposed resolution

Before trying to access an array index, you can check if the index exists in the array. You can use isset() or array_key_exists()

🐛 Bug report
Status

Active

Version

1.8

Component

Code

Created by

🇮🇳India ashraf.hussain Bangalore

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

Comments & Activities

Production build 0.71.5 2024