Bug 7462 - duplicate patron shows flags
authorOwen Leonard <oleonard@myacpl.org>
Wed, 16 Jul 2014 13:13:34 +0000 (09:13 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 30 Jul 2014 17:25:00 +0000 (14:25 -0300)
When duplicating a patron the form fields for setting patron account
flags and restrictions should be hidden as it is when adding a patron.
This patch adds the correct logic to the template.

To test, duplicate an existing patron:

- Confirm that the "Patron account flags" and "Patron restrictions"
  sections are not visible.
- Confirm that saving a duplicated patron works correctly.
- Confirm that the edit and new patron entry forms are unaffected.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works ok, all three points confirmed
No koha-qa errors

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described, small template change.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt

index 858f7f3..3ed8d28 100644 (file)
                </fieldset>
         [% END # hide fieldset %][% END %]
                <!--this zones are not necessary in modif mode -->
-               [% UNLESS ( opadd ) %]
+        [% UNLESS ( opadd || opduplicate ) %]
                <fieldset class="rows">
             <legend>Patron account flags</legend>
                        <ol class="radio">