Bug 9933: Unable to edit or add rules for any branch except default
authorChris Cormack <chrisc@catalyst.net.nz>
Mon, 8 Apr 2013 08:43:45 +0000 (20:43 +1200)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 15 Apr 2013 12:31:41 +0000 (08:31 -0400)
To test
1/ Select a branch in circ rules
2/ Edit or add a rule, note this change is made for default instead of
the library you selected
3/ Apply the patch
4/ Try 1 and 2 again

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Works as expected.
Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt

index 586d310..c52b77e 100644 (file)
@@ -133,7 +133,7 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
 
         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
             <input type="hidden" name="op" value="add" />
-            <input type="hidden" name="branch" value="[% branch %]"/>
+            <input type="hidden" name="branch" value="[% current_branch %]"/>
             <table id="default-circulation-rules">
             <thead>
             <tr>