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

Marcel de Rooy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #169162|0                           |1
        is obsolete|                            |

--- Comment #7 from Marcel de Rooy <[email protected]> ---
Created attachment 174918
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=174918&action=edit
Bug 37393: fix "In bundle:" link not showing for items in staff interface

The cause was erroneous check `[% IF bundlesEnabled %]` before the parent
bundle information is requested+shown. The `bundlesEnabled` variable checks if
the current biblio ITSELF is of collection type, so should only be used for
whether to show the button to add new items to the bundle items, NOT for
querying whether current item is part of a bundle, as the items that make up
the bundle aren't of collection type themselves.

The second fixed problem was that `bundle_host` didn't contain `.biblio`
subitem (which'd contain the actual host biblio title) as the JavaScript code
assumed, and it wasn't possible to request it with the API either.

Test plan: please follow the reproduction instructions from bug and ensure that
the described issue is gone.

If you run into an error 400 on the detail page, you need to refresh API
definitions, in kts shell you'drun:

redocly bundle --ext json api/v1/swagger/swagger.yaml --output
api/v1/swagger/swagger_bundle.json
koha-plack --restart kohadev

Signed-off-by: Roman Dolny <[email protected]>

Signed-off-by: Marcel de Rooy <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to