Bug 37005: Fix problem with item_type_description being undefined

To test:
1. Set noItemTypeImages to 'Don't show'
2. Find a record with items and notice the holdings table never loads.
3. APPLY patch, maybe clear borwser cache too.
4. Try again, the holdings table should load.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Lucas Gass 2024-05-31 21:30:43 +00:00 committed by Martin Renvoize
parent 325a96a406
commit 37b66a2d7c
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -351,8 +351,8 @@
node += image_location
? '<img src="%s" alt="%s" title="%s" /> '.format(escape_str(image_location), escape_str(item_type_description), escape_str(item_type_description))
: '';
node += '<span class="itypedesc itypetext">%s</span>'.format(escape_str(item_type_description));
[% END %]
node += '<span class="itypedesc itypetext">%s</span>'.format(escape_str(item_type_description));
return node;
}
},