[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
Fri Feb 16 12:12:33 CET 2018


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

Josef Moravec <josef.moravec at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #71679|0                           |1
        is obsolete|                            |
  Attachment #71680|0                           |1
        is obsolete|                            |
  Attachment #71681|0                           |1
        is obsolete|                            |
  Attachment #71682|0                           |1
        is obsolete|                            |
  Attachment #71683|0                           |1
        is obsolete|                            |
  Attachment #71684|0                           |1
        is obsolete|                            |
  Attachment #71685|0                           |1
        is obsolete|                            |
  Attachment #71686|0                           |1
        is obsolete|                            |
  Attachment #71687|0                           |1
        is obsolete|                            |
  Attachment #71688|0                           |1
        is obsolete|                            |
  Attachment #71689|0                           |1
        is obsolete|                            |
  Attachment #71690|0                           |1
        is obsolete|                            |
  Attachment #71691|0                           |1
        is obsolete|                            |

--- Comment #50 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 71713
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71713&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.

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

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


More information about the Koha-bugs mailing list