]> git.koha-community.org Git - koha.git/commit
Bug 17835: Do not reselect translated_description if comes from search_with_localization
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 3 Jan 2017 08:22:48 +0000 (09:22 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 14 Apr 2017 14:43:51 +0000 (10:43 -0400)
commit53ce807f6e6becc1e305d7743b8be9d5605a8c9a
tree7d7d10e165d3795a7d977433a76158c923fd8994
parent80018625cf03ccd00957035f99065ed5793b80e3
Bug 17835: Do not reselect translated_description if comes from search_with_localization

If the Koha::ItemType object has been instanciated from a call to
Koha::ItemTypes->search_with_localization, we already have the
translated_description value. So there is no need to fetch it again from
the DB. This is what this trick does: if the translated_description
column exist in the DBIx::Class result source's column list, that means
the value has already been retrieved.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Lari Taskula <lari.taskula@jns.fi>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/ItemType.pm