[Koha-bugs] [Bug 32728] ERM - Search header should change to match the section you are in

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 28 11:07:13 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32728

--- Comment #8 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 147482
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=147482&action=edit
Bug 32728: Fix warning

There is a couple of wrong things from the previous patch:

* There is a warning in the console
Firefox
[Vue Router warn]: Unexpected error when starting the router: TypeError:
document.getElementById(...) is null
Chrome
[Vue Router warn]: Unexpected error when starting the router: TypeError: Cannot
read properties of null (reading 'click')
That's because the tabs are not initialized yet, and so the tab is not
correctly selected when the app is loaded.

* "Search titles" is selected when on packages, and "Search packages" is
selected when on titles

This patch remove the warning and fix the second problem.

However the tab is still wrong when the app is loaded. Will see later if
that can be fixed, but it's not trivial at first glance.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list