From af81fc3506af12f1e09d19d0a2f9e58b936565ce Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 16 May 2019 14:59:04 -0400 Subject: [PATCH] Fix array of state should output state.value --- lib/GlmPDFLabel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/GlmPDFLabel.php b/lib/GlmPDFLabel.php index 9cbf2b6..884edef 100644 --- a/lib/GlmPDFLabel.php +++ b/lib/GlmPDFLabel.php @@ -58,6 +58,7 @@ class GlmPDFLabel extends Cezpdf $columnCount = 0; $rowCount = 0; foreach ( $accounts as $account ) { + // echo '
$account: ' . print_r( $account, true ) . '
'; // $account = $invData['account']; $columnCount++; $colName = ( $columnCount % 2 == 0 ) ? 'col2' : 'col1'; @@ -76,7 +77,7 @@ class GlmPDFLabel extends Cezpdf ''.$account['ref_name'].'', $addressLine, $account['billing_city'], - $account['billing_state'], + $account['billing_state']['value'], $account['billing_zip'] ); if ( $columnCount % 2 == 0 ) { -- 2.17.1