Bug 8027: fix param order for z3950 INSERT
authorAdrien Saurat <adrien.saurat@biblibre.com>
Mon, 30 Apr 2012 10:15:13 +0000 (12:15 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 7 May 2012 19:58:25 +0000 (21:58 +0200)
In the z3950servers.pl order of columns which are inserted
for new server is wrong, which results in empty timeout
and encoding values when new server is added.

Test scenario:

1. Open Z39.50 server administration
2. add new server with encoding and timeout
3. save server and verify that it has encoding and timeout

Signed-off-by: Dobrica Pavlinusic <dpavlin@rot13.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
admin/z3950servers.pl

index 14603f6..3bc0ef2 100755 (executable)
@@ -141,8 +141,8 @@ if ($op eq 'add_form') {
             $checked,
             $input->param( 'rank' ),
             $input->param( 'syntax' ),
-            $input->param( 'timeout' ),
-            $input->param( 'encoding' ) );
+            $input->param( 'encoding' ),
+            $input->param( 'timeout' ) );
        }
        $sth->finish;
                                                                                                        # END $OP eq ADD_VALIDATE