Skip to content

Commit

Permalink
Fixed barcode not appearing in email bug
Browse files Browse the repository at this point in the history
  • Loading branch information
john-c-houser committed Jan 31, 2024
1 parent 4e8134c commit f71dfdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Libilsws.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) ) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f71dfdf

Please sign in to comment.