diff --git a/src/Libilsws.php b/src/Libilsws.php index 5aad00a..1bfa69d 100644 --- a/src/Libilsws.php +++ b/src/Libilsws.php @@ -2304,6 +2304,7 @@ public function register_patron ($patron, $token = null, $addr_num = null, $temp // Assign the patron_key from the initial registration to the update array $patron_key = $response['key']; + $patron['barcode'] = $patron_key; // Create a record structure with the update fields that aren't part of the initial registration if ( ! $this->change_barcode($token, $patron_key, $patron_key) ) { @@ -2625,6 +2626,8 @@ private function gen_temp_barcode ($last_name, $first_name, $street) public function email_template ($patron, $from, $to, $subject, $template) { + print_r($patron); + $result = 0; // Fill template