Bug 23905: Button "Search to add" doesn't work on Quick add new patron
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 25 Nov 2019 16:50:46 +0000 (11:50 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 26 Nov 2019 11:15:12 +0000 (11:15 +0000)
commitdcb9bf358151bcca6189581871aeb937125bc896
treeb27145169d392fe45498e301c945db03d8c8c4c5
parent53c8014557326e9a67c3c53b016e2fd10ac4f3ad
Bug 23905: Button "Search to add" doesn't work on Quick add new patron

This issue is caused by duplicating the patron guarantor fieldset.
The solution is to move it between the two forms insetad.
In addition, this patch moves the guarantor information fieldset to the area below the "Quick add" fieldset, instead of *inside* it. This change preserves the correct styling and layout of the Guarantor information fieldset whilst it is moved back and forth by the "quick add"/"full form" toggle.

Test Plan:
1) Quick add a child patron
2) Attempt to use the "Search to add" button
3) Note it does nothing
4) Apply this patch
5) Repeat steps 1 and 2
6) It works now!
7) Test toggling between the quick add and full form views,
   note the "Guarantor information" fieldset shows correctly
   in the full form view.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
koha-tmpl/intranet-tmpl/prog/js/members.js