X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=admin%2Fmatching-rules.pl;h=2fa2ac6429f4935360f13c626bd368059aa770c1;hb=a51aa4f546c5ca0dc7363b2cbbe77a903ee32f96;hp=5d88c4684b026c9224768773307781ddd0e0facc;hpb=92702aa010ed31e0a4b04260ae4bedf8b788e0be;p=koha_fer diff --git a/admin/matching-rules.pl b/admin/matching-rules.pl index 5d88c4684b..2fa2ac6429 100755 --- a/admin/matching-rules.pl +++ b/admin/matching-rules.pl @@ -13,9 +13,9 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # use strict; @@ -30,7 +30,7 @@ use C4::Matcher; my $script_name = "/cgi-bin/koha/admin/matching-rules.pl"; -my $input = new CGI; +our $input = new CGI; my $op = $input->param('op') || ''; @@ -39,7 +39,7 @@ my ($template, $loggedinuser, $cookie) query => $input, type => "intranet", authnotrequired => 0, - flagsrequired => {parameters => 1}, + flagsrequired => {parameters => 'parameters_remaining_permissions'}, debug => 1, }); @@ -126,7 +126,7 @@ sub add_update_matching_rule { # match checks my @mc_nums = sort map { /^mc_(\d+)_id/ ? int($1): () } $input->param; - foreach my $mc_num (@mp_nums) { + foreach my $mc_num (@mc_nums) { # source components my $src_components = []; my @src_comp_nums = sort map { /^mc_${mc_num}_src_c_(\d+)_tag/ ? int($1): () } $input->param;