Problem/Motivation

Undefined location variable in the commerce billy pdf module.
Notice: Undefined variable: location in commerce_billy_pdf_commerce_order_view() (line 195 of /sites/all/modules/contrib/commerce_billy/modules/commerce_billy_pdf/commerce_billy_pdf.module).

This error is only in the case of canceled view mode.

Proposed resolution

invoice_location data is comming from the $settings variable.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

peri22’s picture

This patch fixes the problem.

peri22’s picture

Issue summary: View changes
lsolesen’s picture

Assigned: peri22 » Unassigned
Status: Active » Needs review
Issue tags: -location

This seems to be working - and I think the approach is allright. It is RTBC for me.

lsolesen’s picture

Title: Undefined location variable » Undefined location variable for canceled orders
Anybody’s picture

Status: Needs review » Reviewed & tested by the community
lmeurs’s picture

Thanks for the patch, attached a bit cleaner version.

timlie’s picture

Patch in comment #6 works!

emerham’s picture

any word on when this might be committed, I just changed the $ to an @ and the live version is working for me.

edit:
nm will apply patch, changing that character just prints "location"

klausi’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

  • klausi committed 4f40bce on 7.x-1.x authored by lmeurs
    Issue #2312343 by peri22, lmeurs: Undefined location variable for...

Status: Fixed » Closed (fixed)

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