[Koha-bugs] [Bug 19966] Add ability to pass objects directly to slips and notices

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 21 21:05:30 CET 2018


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

--- Comment #8 from Kyle M Hall <kyle at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #7)
> Yes I thought about that, but it may be problematic as we do not necessarily
> create the object for the notices only. So if we do it that way (when
> creating it) we may need to fetch it twice.

I agree. I don't think we should have to fetch an object twice. I think the
fact that you can set read_only but not unset it is sufficient. Basically, and
object can be passed around the entire lifecycle of a script call, then be
marked read_only at the end and passed to the template. 

The *other* option would be a new_from_object method that close the passed in
object. Then you could have read_only be immutable and set on creation.

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


More information about the Koha-bugs mailing list