Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Jon Knight 121b8105bc Bug 16739: Show note instead of 500 error for 'Generate EDIFACT' when no EDI account is configured
When a book seller (vendor) does not have EDI account information configured
the basketgroup display still shows a button to generate EDIFACT output which
results in 500 error when clicked.  This patch fixes two aspects of this:

a) it stops the button being displayed in the first place, replacing it with
a message that explains there is not EDIFACT configuration for the vendor.

b) if, somehow, an edifact print operation is passed to the basketgroup
script it detects the lack of an EAN and redirects back to the basket group
display page with a warning message.

To test:
1) Create a vendor with no EDI details.
2) Create a basket with some items in, then close it and add it to a basket
   group for this vendor.
   3) Go to that vendor's basket groups, click on the "Closed" tab and then
      click on the 'generate edifact order' button. You should get a 500 error.
   4) Apply this patch.
   5) Repeat 3, except this time you should find that the 'generate edifact
      order' button has been replaced with a note that there is
      "No EDIFACT configuration for <vendor>".

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-09-28 19:24:49 +00:00
..
acqui Bug 16739: Show note instead of 500 error for 'Generate EDIFACT' when no EDI account is configured 2018-09-28 19:24:49 +00:00
admin Bug 20743: Remove duplicated line 'See your public page' 2018-09-21 12:17:04 +00:00
authorities Bug 13406: (RM follow-up) Add missing filter 2018-09-19 14:35:41 +00:00
basket Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
batch Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
catalogue Bug 19833: (follow-up) Minor corrections 2018-09-19 13:56:18 +00:00
cataloguing Bug 16424: Add framework support to advanced MARC editor 2018-09-28 19:01:50 +00:00
circ Bug 21350: Added icon to Pending on-site checkouts and moved 2018-09-26 16:47:06 +00:00
clubs Bug 21305: Update two-column templates with Bootstrap grid: Patron clubs 2018-09-16 00:13:26 +00:00
common Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
course_reserves Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
errors Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
ill Bug 21377: Remove erroneous "html" filter use 2018-09-28 19:00:33 +00:00
installer Bug 19833: Kill all the "bibilos" - final couple 2018-09-19 13:54:43 +00:00
labels Bug 13618: (follow-up) Add html filters to all the variables 2018-08-17 15:55:13 +00:00
members Bug 21380: (QA follow-up) Use uri filter in link parameters 2018-09-26 16:20:07 +00:00
offline_circ Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
onboarding Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
patron_lists Bug 21096: Do not display loggedinusername in template 2018-08-30 13:40:31 +00:00
patroncards Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
plugins Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
reports Bug 19833: Changing the "biblios" - most of reports 2018-09-19 13:54:45 +00:00
reserve Bug 19469: (RM follow-up) Add filters and fix variable name 2018-09-14 17:50:20 +00:00
reviews Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
rotating_collections Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
serials Bug 20726: (RM follow-up) Add missing filters 2018-08-30 13:47:58 +00:00
services Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
suggestion Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
tags Bug 21306: Update two-column templates with Bootstrap grid: Tags 2018-09-16 00:13:14 +00:00
test
tools Bug 21333: (follow-up) Make link a button 2018-09-26 19:05:54 +00:00
virtualshelves Bug 21297: Display public lists to existing lists when adding a new item 2018-09-28 19:18:43 +00:00
about.tt Bug 7143: Update about page for new dev - Alberto Martinez 2018-09-26 19:00:16 +00:00
auth.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
intranet-main.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00