Bugzilla – Attachment 77466 Details for
Bug 20828
Step 4 of moremember is used for Housebound and additional attributes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20828: Step 4 of moremember is used for Housebound and additional attributes
Bug-20828-Step-4-of-moremember-is-used-for-Housebo.patch (text/plain), 4.84 KB, created by
Biblibre Sandboxes
on 2018-08-03 10:41:37 UTC
(
hide
)
Description:
Bug 20828: Step 4 of moremember is used for Housebound and additional attributes
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2018-08-03 10:41:37 UTC
Size:
4.84 KB
patch
obsolete
>From cb827351b14db511c47ddc5f4d4676cba9f60458 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 19 Jul 2018 15:13:55 +0000 >Subject: [PATCH] Bug 20828: Step 4 of moremember is used for Housebound and > additional attributes > >This patch modifies the patron edit process so that "Housebound roles" >can be edited as a separate step. > >To test, apply the patch and open an existing patron's detail page >(moremember.tt). Test the "edit" links for 'Housebound roles' and >'Additional attributes and identifiers' and confirm that each opens its >own edit page, and saving changes works correctly. > >Signed-off-by: Cab Vinton <bibliwho@gmail.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 7 +++++-- > koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 2 +- > members/memberentry.pl | 8 ++++---- > 3 files changed, 10 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index 3635360..35bc823 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -147,7 +147,7 @@ > <input type="hidden" name="op" value="insert" /> > [% ELSE %] > <input type="hidden" name="op" value="save" /> >-[% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 %] >+[% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 || step == 7 %] > [%# Only put the cardnumber if we arent showing it in the form later %] > [% IF cardnumber %] > <input type="hidden" name="cardnumber" value="[% cardnumber %]" /> >@@ -976,7 +976,7 @@ > > [% END %] > >-[% IF ( step_4 ) %] >+[% IF ( step_7 ) %] > [% IF Koha.Preference('HouseboundModule') %] > <fieldset class="rows" id="memberentry_housebound_roles"> > <legend id="housebound_roles">Housebound roles</legend> >@@ -1026,6 +1026,9 @@ > </ol> > </fieldset> > [% END # hide fieldset %] >+[% END # IF step_7 %] >+ >+[% IF ( step_4 ) %] > [% IF ( ExtendedPatronAttributes ) %][% UNLESS ( no_patron_attribute_types ) %] > <fieldset class="rows" id="memberentry_patron_attributes"> > <legend id="patron_attributes_lgd">Additional attributes and identifiers</legend> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index cac919f..605ac75 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -302,7 +302,7 @@ > </div> > </div> > <div class="action"> >- <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=4">Edit</a> >+ <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=7">Edit</a> > </div> > [% END %] > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index 0b05bb1..3618c4f 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -573,7 +573,7 @@ if ($nok or !$nodouble){ > %data=%newdata; > $template->param( updtype => ($op eq 'add' ?'I':'M')); # used to check for $op eq "insert"... but we just changed $op! > unless ($step){ >- $template->param( step_1 => 1,step_2 => 1,step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1); >+ $template->param( step_1 => 1,step_2 => 1,step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1, step_7 => 1 ); > } > } > if (C4::Context->preference("IndependentBranches")) { >@@ -586,11 +586,11 @@ if (C4::Context->preference("IndependentBranches")) { > } > } > if ($op eq 'add'){ >- $template->param( updtype => 'I', step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1); >+ $template->param( updtype => 'I', step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1, step_7 => 1); > } > if ($op eq "modify") { > $template->param( updtype => 'M',modify => 1 ); >- $template->param( step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1) unless $step; >+ $template->param( step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1, step_7 => 1) unless $step; > if ( $step == 4 ) { > $template->param( categorycode => $borrower_data->{'categorycode'} ); > } >@@ -606,7 +606,7 @@ if ($op eq "modify") { > } > if ( $op eq "duplicate" ) { > $template->param( updtype => 'I' ); >- $template->param( step_1 => 1, step_2 => 1, step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1 ) unless $step; >+ $template->param( step_1 => 1, step_2 => 1, step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1, step_7 => 1 ) unless $step; > $data{'cardnumber'} = ""; > } > >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20828
:
77139
|
77466
|
77483