From 0be25050e76d5569ece89a89989a62d20f127927 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Wed, 2 Jul 2014 11:59:55 -0400
Subject: [PATCH] Fixed problem with bad holding display.

---
 themes/root/templates/Email/record-sms.phtml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/themes/root/templates/Email/record-sms.phtml b/themes/root/templates/Email/record-sms.phtml
index 411c4ce214d..722515247dc 100644
--- a/themes/root/templates/Email/record-sms.phtml
+++ b/themes/root/templates/Email/record-sms.phtml
@@ -15,7 +15,8 @@
         // the last location encountered.
         $callno = $location = $backupLocation = false;
         $useBackupLocation = true;
-        foreach ($holdings as $location => $details) {
+        foreach ($holdings as $details) {
+            $location = $details['location'];
             foreach ($details['items'] as $item) {
                 $callno = isset($item['callnumber']) ? $item['callnumber'] : false;
                 if ($item['availability']) {
-- 
GitLab