[Koha-bugs] [Bug 18789] Send a Koha::Patron object to the templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 7 19:36:19 CET 2018


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #64211|0                           |1
        is obsolete|                            |
  Attachment #64212|0                           |1
        is obsolete|                            |
  Attachment #64213|0                           |1
        is obsolete|                            |
  Attachment #64214|0                           |1
        is obsolete|                            |
  Attachment #64215|0                           |1
        is obsolete|                            |
  Attachment #64216|0                           |1
        is obsolete|                            |
  Attachment #64218|0                           |1
        is obsolete|                            |
  Attachment #64219|0                           |1
        is obsolete|                            |
  Attachment #64221|0                           |1
        is obsolete|                            |
  Attachment #64229|0                           |1
        is obsolete|                            |

--- Comment #13 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 71301
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71301&action=edit
Bug 18789: Send Koha::Patron object to the templates

In order to simplify and make uniform the code, the controller scripts send
a Koha::Patron object to the templates instead of all attributes of a patron.

That will make the code much more easier to maintain and will be less
error-prone.

The variable "patron" sent to the templates is supposed to represent the
patron the librarian is editing the detail.

In the members module and some scripts of the circulation module, the
patron's detail are sent one by one to the template. That leads to
frustration from developpers (making sure everything is passed from all
scripts) and to regression (we got tone of bugs in the last year because
of this way to do).
With this patch set it will be easy access patron's detail, passing only
1 variable from the controllers.

Test plan:
Play with the patron and circulation module and make sur the detail of
the patron you are editing/seeing info are correctly displayed.

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


More information about the Koha-bugs mailing list