From 18897a27df163ee482d465cc4910366c8da61dd5 Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Wed, 9 Oct 2024 15:04:19 -0300 Subject: [PATCH] dont remove leading 0s from campus ids anymore --- src/Form/RoblibIllLoanForm.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Form/RoblibIllLoanForm.php b/src/Form/RoblibIllLoanForm.php index c927e1d..f6653f9 100644 --- a/src/Form/RoblibIllLoanForm.php +++ b/src/Form/RoblibIllLoanForm.php @@ -81,8 +81,12 @@ class RoblibIllLoanForm extends FormBase { * the campus id with leading zeros and leading/trailing whitespace removed. */ function ill_form_message_id($id) { - $id = ltrim($id, '0'); - return trim($id); + // Equinox made some changes to the database so we may not need to do + // this anymore. + // Doing this simple change for now in case things need to be reverted. + //$id = ltrim($id, '0'); + //return trim($id); + return $id; } /**