Bug 18965 - branch transfer limits pagination save bug
commitca7f2f5aa48d8d5136029d10d8c15ffacf010103
authorFridolin Somers <fridolin.somers@biblibre.com>
Thu, 20 Jul 2017 14:08:59 +0000 (20 16:08 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 31 Jul 2017 07:58:38 +0000 (31 09:58 +0200)
tree65ee5e8d1d9d5199da1fc14fe5da00d2b78a1c53
parent5b71a4150571b0d9013341b6f64e41f12a7f1f29
Bug 18965 - branch transfer limits pagination save bug

In branch transfer limits, tables are paginated with 20 rows by default.

The bug is that datatable not only hides rows, they are not in form.
So when submitting form, rows not visible are erased.

Test plan :
Wihout patch :
- Create 22 branches, you can hack the creation form by manualling calling URL : /cgi-bin/koha/admin/branches.pl?op=add_validate&branchcode=Bxx&branchname=Bxx
- Go to Administration > Library transfer limits
- You see table first page : only 20 first rows are shown
- You see all checkboxes are checked
- Go to second page of this table
- Save
=> You see table first page with all checkboxes unchecked
With patch the is no pagination, all checkboxes are shown when you save

Signed-off-by: Axelle Clarisse <axelle.clarisse@univ-amu.fr>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 7a306d72ab98f2abf2266716761820f1098ede9b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt