Active
Project:
LABjs
Version:
7.x-1.6
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 May 2015 at 22:53 UTC
Updated:
14 May 2015 at 22:53 UTC
Hello,
For some reason labjs is throwing an Undefined index "data" error in the Views Admin GUI:
LOCATION https://dev34.intacct.com/admin/structure/views/view/admin_views_node/preview/system_1/ajax
REFERRER https://dev34.intacct.com/admin/structure/views/view/admin_views_node
MESSAGE Notice: Undefined index: data in labjs_advagg_js_groups_alter() (line 319 of /home/webmaster/p10/website/site/sites/all/modules/labjs/labjs.module).
The location / referrer varies, depending on where you are in the Views Admin GUI, but the message is the same every time, same line of code, line 319:
308 /**
309 * Implements hook_advagg_js_groups_alter()
310 */
311 function labjs_advagg_js_groups_alter(&$js_groups, $preprocess_js) {
312 if (!$preprocess_js) {
313 return;
314 }
315 $labjs_location = labjs_get_path();
316
317 foreach ($js_groups as &$data) {
318 foreach ($data['items'] as &$values) {
319 if ($values['data'] == $labjs_location) {
320 // Strictly enforce preprocess = FALSE for labjs
321 $values['preprocess'] = FALSE;
322 $data['preprocess'] = FALSE;
323 break 2;
324 }
325 }
326 }
327 }
I have LabJS set to not run on any "admin/*" pages, so I'm not sure if this is part of the path check and erroring, or it's ignoring the path check in some way and firing anyway.
Not a huge concern as no one production would be accessing the Views Admin GUI, just wondering why this would be occurring.
Any info greatly appreciated.
Thanks,
Ari