Commit a514315f authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen Committed by Torstein
Browse files

DEICH-5925 update fields returned from patron search

parent 1122a774
......@@ -105,7 +105,10 @@ WITH t AS (SELECT upperagelimit from categories where categorycode = 'B')
SELECT
dateofbirth,
TIMESTAMPDIFF(YEAR, dateofbirth, CURDATE()) AS age,
CONCAT(surname, ', ', firstname) AS name,
surname,
firstname,
borrowernumber,
cardnumber,
categorycode
FROM borrowers, t
WHERE
......@@ -236,7 +239,7 @@ sub Update {
. " WHERE borrowernumber = ?";
my $sth = $dbh->prepare($q);
$sth->execute( $self->{patron}->{borrowernumber} ) or Deichman::Exception::Patron->throw($dbh->errstr);
# DEICH-5747 : send update to MessageQueue if adult
if ($self->{patron}->{categorycode} eq "V") {
# Check if it's a new user that should be subscribed.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment