Bug 18170: Use GetDescriptionByKohaField
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 1 Oct 2020 13:14:13 +0000 (14:14 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 15 Oct 2020 10:56:31 +0000 (12:56 +0200)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt

index 5b5fb96..b96eafa 100644 (file)
                                                 Not checked out
                                             [% END %]
                                             [% IF ( riloo.damaged ) %]
-                                                <span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', riloo.damaged ) | html %]</span>
+                                                <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => riloo.damaged ) | html %]</span>
                                             [% END %]
                                         </td>
                                         <td class="ci-title">