Main Koha release repository https://koha-community.org
Find a file
Jonathan Druart 0ab22e1c7c 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@bywatersolutions.com>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-02-16 13:03:58 -03:00
acqui Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
admin Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
api/v1 Bug 20144: (follow-up) Adjust /patrons endpoint 2018-02-13 16:08:47 -03:00
authorities Bug 19881: Remove authorities-list.pl 2018-02-15 16:05:13 -03:00
basket Bug 19040: Refactor GetMarcBiblio parameters 2017-08-25 10:23:42 -03:00
C4 Bug 20144: [sql_modes] Fix GROUP BY clause in Virtualshelves search (DT) 2018-02-13 13:59:01 -03:00
catalogue Bug 20157: Do not display OPAC groups on the staff interface 2018-02-12 15:42:22 -03:00
cataloguing Bug 19996: (RM follow-up 2) Remove commented use warnings; 2018-02-15 11:23:51 -03:00
circ Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
clubs Bug 18632: Remove 'CGI::param called in list context' warnings 2017-05-28 22:25:22 -04:00
course_reserves Bug 19230: Preventing warn when deleting course 2018-01-30 14:18:21 -03:00
debian Bug 20187: (QA follow-up) Replace N,L flag by L flag 2018-02-13 12:54:32 -03:00
docs Bug 7143: Update about page for new dev - Chad Billman 2018-02-12 18:07:20 -03:00
errors Bug 19998: use Modern::Perl in error perl scripts 2018-02-05 09:45:48 -03:00
etc Bug 20187: (QA follow-up) Replace N,L flag by L flag 2018-02-13 12:54:32 -03:00
ill Bug 7317: Display all the libraries, not only one 2017-11-09 13:31:10 -03:00
installer Bug 20144: DBRev 17.12.00.015 2018-02-13 14:12:41 -03:00
Koha Bug 20182: [sql_modes] Remove group by clause in search_patrons_to_anonymise 2018-02-16 13:03:58 -03:00
koha-tmpl Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
labels Bug 18403: Update permissions - borrowers => 1|* becomes borrowers => 'edit_borrowers' 2018-02-12 15:41:37 -03:00
members Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
misc Bug 19451: (QA follow-up) Replace weird subquery 2018-02-12 18:02:00 -03:00
offline_circ Bug 20018: use Modern::Perl in offline_circ scripts 2018-02-05 09:46:45 -03:00
opac Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
OpenILS
patron_lists
patroncards Bug 20010: use Modern::Perl in Patroncards perl scripts 2018-02-05 09:46:44 -03:00
plugins Bug 20011: use Modern::Perl in plugins perl scripts 2018-02-05 09:46:44 -03:00
reports Bug 20185: Remove warnings from stats.print.pl 2018-02-16 13:03:58 -03:00
reserve Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
reviews Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
rotating_collections Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
serials Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
services Bug 20019: use Modern::Perl in misc perl scripts 2018-02-05 09:47:08 -03:00
skel
suggestion Bug 20019: use Modern::Perl in misc perl scripts 2018-02-05 09:47:08 -03:00
svc Bug 18403: Update permissions - borrowers => 1|* becomes borrowers => 'edit_borrowers' 2018-02-12 15:41:37 -03:00
t Bug 20176: [sql_modes] Set biblio.datecreated to NOW if not defined 2018-02-16 13:03:58 -03:00
tags Bug 20019: use Modern::Perl in misc perl scripts 2018-02-05 09:47:08 -03:00
test
tmp/modified_authorities
tools Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
virtualshelves Bug 20019: use Modern::Perl in misc perl scripts 2018-02-05 09:47:08 -03:00
xt Bug 20020: use Modern::Perl in XT scripts 2018-02-05 09:47:09 -03:00
.editorconfig
.htaccess
.mailmap Update mailmap - Jonathan Druart 2017-06-21 12:42:19 -03:00
about.pl Bug 19542: (QA follow-up) Remove debug warn 2017-12-11 14:30:42 -03:00
changelanguage.pl Bug 20019: use Modern::Perl in misc perl scripts 2018-02-05 09:47:08 -03:00
edithelp.pl Bug 18403: Update permissions - borrowers => 1|* becomes borrowers => 'edit_borrowers' 2018-02-12 15:41:37 -03:00
fix-perl-path.PL
help.pl Bug 20019: use Modern::Perl in misc perl scripts 2018-02-05 09:47:08 -03:00
INSTALL
install-CPAN.pl
Koha.pm Bug 20144: DBRev 17.12.00.015 2018-02-13 14:12:41 -03:00
koha_perl_deps.pl Bug 20019: use Modern::Perl in misc perl scripts 2018-02-05 09:47:08 -03:00
kohaversion.pl
LICENSE
mainpage.pl Bug 18403: Article requests 2018-02-12 15:41:41 -03:00
Makefile.PL Bug 17951: (follow-up) Make Makefile.PL handle template_cache_dir config 2017-12-22 13:15:39 -03:00
MANIFEST.SKIP
README
README.md Bug 15465: Fix typo in bugs.k-c.org 2017-05-26 11:45:31 -03:00
README.robots
rewrite-config.PL Bug 17951: (follow-up) Make Makefile.PL handle template_cache_dir config 2017-12-22 13:15:39 -03:00

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo