X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=patroncards%2Fimage-manage.pl;h=cf5257aac7603bf39f22a333f6c99fd1012fde1a;hb=46bbfa12a1d20cfaea2c61ad9bf1fdb47a25435a;hp=f9f7eac984aacd77fecbf468532cb03556e7249e;hpb=949fcd04bad3d7f13a48081cdfdd1bc11510a401;p=koha.git diff --git a/patroncards/image-manage.pl b/patroncards/image-manage.pl index f9f7eac984..cf5257aac7 100755 --- a/patroncards/image-manage.pl +++ b/patroncards/image-manage.pl @@ -54,8 +54,7 @@ if ($op eq 'upload') { SOURCE_FILE => $source_file, IMAGE_NAME => $image_name, TABLE => $table, - error => 1, - $errstr => 1, + error => $errstr, ); } else { @@ -69,8 +68,7 @@ if ($op eq 'upload') { SOURCE_FILE => $source_file, IMAGE_NAME => $image_name, TABLE => $table, - error => 1, - $errstr => 1, + error => $errstr, ); } else { @@ -87,8 +85,7 @@ if ($op eq 'upload') { SOURCE_FILE => $source_file, IMAGE_NAME => $image_name, TABLE => $table, - error => 1, - $errstr => 1, + error => $errstr, image_limit => $image_limit, ); } @@ -120,8 +117,7 @@ elsif ($op eq 'delete') { DELETE_SUCCESSFULL => 0, IMAGE_IDS => join(', ', @image_ids), TABLE => $table, - error => 1, - $errstr => 1, + error => $errstr, image_ids => join(',',@image_ids), ); } @@ -149,8 +145,7 @@ else { # to trap unsupported operations SOURCE_FILE => $source_file, IMAGE_NAME => $image_name, TABLE => $table, - error => 1, - $errstr => 1, + error => $errstr, ); }