https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36483
Bug ID: 36483
Summary: Calling $object->to_api directly should be avoided
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: REST API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Highlighted on bug 36482, calling $object->to_api directly on our API
controllers makes several parameters ineffective. Notably, x-koha-embed. We
should call instead:
```perl
$c->objects->to_api( $object )
```
A follow-up bug replacing all existing calls should've been filled but we
somehow missed it.
--
You are receiving this mail because:
You are the assignee for the bug.
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/