[Koha-bugs] [Bug 26555] Add a way for Koha::Object(s) to carry execution information

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 12 17:03:02 CET 2020


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Text to go in the|                            |This enhancement adds a
      release notes|                            |standardised way to pass
                   |                            |execution information
                   |                            |around within
                   |                            |Koha::Objects.
                   |                            |
                   |                            |Execution
                   |                            |data should be set by
                   |                            |action methods calling
                   |                            |`$self->add_message({
                   |                            |message => $message, type
                   |                            |=> $type, payload =>
                   |                            |$payload });` inside the
                   |                            |action method.
                   |                            |
                   |                            |The caller
                   |                            |can then access the
                   |                            |execution data using `my
                   |                            |$messages =
                   |                            |$object->messages;`

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


More information about the Koha-bugs mailing list