]> git.koha-community.org Git - koha.git/commit
Bug 33484: Include patron search code if no patron selected yet
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 24 Oct 2024 08:37:59 +0000 (10:37 +0200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 28 Oct 2024 16:10:32 +0000 (17:10 +0100)
commitc71e123c4db9418ea557afa417004be64bd81cf5
tree7ada9418257ddce7cfe7a980183e8a4a34795344
parentb4099974f078bb7ed034d4e24d53af6da33aa5c6
Bug 33484: Include patron search code if no patron selected yet

When placing a hold we should not display the patron search code
(html+js) if we have picked a patron already, otherwise a get a JS error
  Uncaught TypeError: table_dt.settings()[0] is undefined

koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
781             let table_dt = patrons_table.DataTable();
782             let loaded_from_state = table_dt.settings()[0].loaded_from_state;

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt