Notice: Undefined index: options in /var/www/html/oncorps/docroot/sites/all/modules/contrib/views/theme/theme.inc

Comments

pradeepjha created an issue. See original summary.

pradeepjha’s picture

Issue summary: View changes
StatusFileSize
new155.83 KB
pradeepjha’s picture

Status: Active » Needs review
StatusFileSize
new1.72 KB
surya.s’s picture

Status: Needs review » Reviewed & tested by the community

The patch works fine in D7 site. Thank you!

damienmckenna’s picture

Title: Notice: Undefined index: options in /sites/all/modules/contrib/views/theme/theme.inc » Notice: Undefined index: options in theme/theme.inc
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.81 KB
new811 bytes

It's not a good solution to check for an outer variable if there's an interior variable you're actually looking for. Please give this new patch a try.

Can you please describe the situation that lead to this notice displaying? What version of PHP are you using? Thank you.

damienmckenna’s picture

Version: 7.x-3.24 » 7.x-3.x-dev
renatog’s picture

Status: Needs review » Reviewed & tested by the community

Yes, @surya.s both will solve the problem but #5 really makes sense

+1 to it

  • RenatoG committed 22ea6a4 on 7.x-3.x authored by DamienMcKenna
    Issue #3165178 by pradeepjha, DamienMcKenna, surya.s, RenatoG: Notice:...
renatog’s picture

Status: Reviewed & tested by the community » Fixed

Moved to the dev branch

Thank you so much everyone

damienmckenna’s picture

Status: Fixed » Closed (fixed)

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