Bug 15014: Returns 0 if everything went fine

Be kind and return 0 if the sample file has been generated correctly.
Otherwise you are a bad guy and you make Plack returns an internal error
(exited nonzero: 1 at /home/vagrant/kohaclone/tools/import_borrowers.pl line 390.)

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Works as expected
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Works as expected here too.

(cherry picked from commit 314f3e22d9)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
Jonathan Druart 2015-10-16 09:02:26 +00:00 committed by Frédéric Demians
parent 345d4a0341
commit 22a6fb9e96
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ if ($input->param('sample')) {
);
$csv->combine(@columnkeys);
print $csv->string, "\n";
exit 1;
exit 0;
}
my $uploadborrowers = $input->param('uploadborrowers');
my $matchpoint = $input->param('matchpoint');