Bug 10887: Batch item deletion -- doesn't need Use default values section
authorAbby <abbyrobnz@gmail.com>
Mon, 16 Feb 2015 14:45:16 +0000 (15:45 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 8 Apr 2015 14:09:08 +0000 (11:09 -0300)
To test:
1. Go to Home > Tools > Batch item deletion
2. Notice that there is an unnecessary option for "use default values
section" to "Populate fields with default values from default work"
3. Apply the patch.
4. Check that this section has disappeared.

Signed-off-by: Nick <Nick@quechelibrary.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt

index 3f9b313..115e4ea 100644 (file)
                             </fieldset>
                             <input type="hidden" name="op" value="show" />
 
-                            <fieldset class="rows">
-                                <legend>Use default values</legend>
-                                <ol class="radio">
-                                    <li>
-                                        <label>
-                                            <input type="checkbox" name="use_default_values" id="use_default_values" />
-                                            Populate fields with default values from default framework
-                                        </label>
-                                    </li>
-                                </ol>
-                            </fieldset>
+                            [% UNLESS del %]
+                                <fieldset class="rows">
+                                    <legend>Use default values</legend>
+                                    <ol class="radio">
+                                        <li>
+                                            <label>
+                                                <input type="checkbox" name="use_default_values" id="use_default_values" />
+                                                Populate fields with default values from default framework
+                                            </label>
+                                        </li>
+                                    </ol>
+                                </fieldset>
+                            [% END %]
 
                             [% IF ( del ) %]<input type="hidden" name="del" value="1" />[% END %]
                             <fieldset class="action">