Aspen-Discovery/aspen-discovery

Change to rememberHoldPickupLocation in Koha.php breaks self reg

Closed this issue · 1 comments

A new addition to Koha.php introduced in eff6d20 breaks self registration. This line sets the rememberHoldPickupLocation on the user object to false. The subsequent insert into users that results during self reg chokes as the SQL ends up with a '' value for the rememberHoldPickupLocation column, which is not an integer, as expected by that column.

The fix is to change the line to $user->rememberHoldPickupLocation = 0;

This has been corrected