Closed (fixed)
Project:
Layout Builder Title Link
Version:
1.0.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2020 at 16:20 UTC
Updated:
19 Dec 2020 at 18:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Christopher Riley commentedI changed the line from the following:
$blockTitleURL = $variables['elements']['#layout_builder_title_link'];
to be:
$blockTitleURL = isset($variables['elements']['#layout_builder_title_link']) ? $variables['elements']['#layout_builder_title_link'] : '';
And I no longer have the issue. What does everyone think?
Comment #3
mohammad-fayoumiChristopher Riley Thanks for reporting this issue.
I think the best practice to solve this undefined index by check if the index is set the define this variable $blockTitleURL like this
I'll put a patch for that.
Comment #4
mohammad-fayoumiComment #5
mohammad-fayoumiHere is the patch to solve
Notice: Undefined index: #layout_builder_title_linkComment #6
mohammad-fayoumiComment #8
mohammad-fayoumiComment #9
mohammad-fayoumiFixed in the new release 1.0.0-beta3
Comment #10
mohammad-fayoumiComment #11
mohammad-fayoumi