When I attempt to set Lighbox2 display format for my content type I get a JavaScript error:

drupal lightbox notice: Undefined index: in .../lightbox2.module on line 896

I suspect this error might be related to the fact that the site I am working on was recently migrated from D6 site to D7 and possibly some old info from the old LB version might have remained and is now in conflict with D7 version of Lightbox.

CommentFileSizeAuthor
#2 undefined_index_js_error-2997309-2.patch784 bytessano
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sano created an issue. See original summary.

sano’s picture

a patch that fixed the problem for me is attached.

sano’s picture

Status: Active » Needs review
pifagor’s picture

Status: Needs review » Reviewed & tested by the community

Look good

alex_optim’s picture

+1

voleger’s picture

Status: Reviewed & tested by the community » Fixed

Fixed code style of the function on the commit.
Thanks, pushed to 7.x-2.x-dev

  • voleger committed 122a360 on 7.x-2.x authored by sano
    Issue #2997309 by sano, pifagor, alex_optim, voleger: Undefined index JS...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.