https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38155
--- Comment #15 from Emily Lamancusa (emlam) <[email protected]> --- (In reply to Brendan Lawlor from comment #14) > (In reply to Emily Lamancusa (emlam) from comment #13) > > variables within this link all need to use the uri filter, not html or > > KohaDates. > > Thanks for this info. I got this from copying the link formatting from the > Actions drop down link (line 109) for close because the data-referer wasn't > working because it was url encoded. It needed to be encoded before because > it used window.location.href for the redirect. > > Should I file a new bug to change the filters in those Actions links to use > uri instead of html? Ah...yes, those are wrong too, though I think | html and | uri give the same output if the data doesn't have any special characters? More importantly, use uri instead of $KohaDates in the referer link - otherwise, the redirect after performing the operation will break if the original search included dates. For example, you'll get an internal server error if you do the following without my follow-up: 1. Add some vendor invoices 2. Go to Acquisitions > Invoices 3. Specify search filters for shipment to/from dates (that match at least some of your invoices) and search for invoices 4. Select some invoices and click "Close selected invoices" --> Internal server error! "The given date <date> does not match the date format (iso)" There seem to be a lot of places in invoices.tt that are passing locally-formatted dates as parameters, but they've been that way for years...I wonder if the processing changed at some point? Or have the internal server errors just gone quietly unnoticed until now? =/ > > Also specify scalar context when splitting the input parameter > I need to read up on this and learn more Perl :) > > Thanks, Emily! :) Thank you too! -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ 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/
