Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#6 | commerce_billy-location_notice-2312343-6.patch | 1.87 KB | lmeurs |
#1 | commerce_billy_pdf-location_notice-2312343-1.patch | 1.42 KB | peri22 |
Comments
Comment #1
peri22 CreditAttribution: peri22 commentedThis patch fixes the problem.
Comment #2
peri22 CreditAttribution: peri22 commentedComment #3
lsolesen CreditAttribution: lsolesen commentedThis seems to be working - and I think the approach is allright. It is RTBC for me.
Comment #4
lsolesen CreditAttribution: lsolesen commentedComment #5
AnybodyComment #6
lmeurs CreditAttribution: lmeurs commentedThanks for the patch, attached a bit cleaner version.
Comment #7
timlie CreditAttribution: timlie commentedPatch in comment #6 works!
Comment #8
emerham CreditAttribution: emerham commentedany 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"
Comment #9
klausiCommitted, thanks!