https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38401

            Bug ID: 38401
           Summary: CSRF error when trying to send EDIFACT message for a
                    basket and only one EAN defined
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Acquisitions
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

IN the code, acqui/edi_ean.pl:

 41 if ( @eans == 1 ) {
 42     my $ean = $eans[0]->ean;
 43     print $query->redirect(
 44        
"/cgi-bin/koha/acqui/basket.pl?basketno=$basketno&op=cud-ediorder&ean=$ean"
 45     );
 46 }


Redirect doesn't send the post variables, so the redirect fails with:
Programming error - op 'cud-ediorder' must not start with 'cud-' for GET
http://localhost:8081/intranet/acqui/basket.pl?basketno=76&op=cud-ediorder&ean=REFW
(referer: http://localhost:8081/cgi-bin/koha/acqui/basket.pl)


Work around, define a second EAN :-)

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to