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

Kyle M Hall <k...@bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #71301|0                           |1
        is obsolete|                            |
  Attachment #71302|0                           |1
        is obsolete|                            |
  Attachment #71303|0                           |1
        is obsolete|                            |
  Attachment #71304|0                           |1
        is obsolete|                            |
  Attachment #71305|0                           |1
        is obsolete|                            |
  Attachment #71306|0                           |1
        is obsolete|                            |
  Attachment #71307|0                           |1
        is obsolete|                            |
  Attachment #71308|0                           |1
        is obsolete|                            |
  Attachment #71309|0                           |1
        is obsolete|                            |
  Attachment #71310|0                           |1
        is obsolete|                            |
  Attachment #71311|0                           |1
        is obsolete|                            |

--- Comment #25 from Kyle M Hall <k...@bywatersolutions.com> ---
Created attachment 71485
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71485&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 <k...@bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/

Reply via email to