From a45eb6082bb99973b6c56600acdcbf41529ac2f3 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 17 Jun 2019 16:53:17 +0100 Subject: [PATCH] Revert "Bug 23075: Better error handling in Mana config" This reverts commit adb30fb8a0347ab6ff391238a8bd1ce4b6931fcd. We missed some cases that means this handling was throwing out perfectly accepable requests. Signed-off-by: Martin Renvoize --- Koha/SharedContent.pm | 7 ------- .../intranet-tmpl/prog/en/modules/admin/share_content.tt | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Koha/SharedContent.pm b/Koha/SharedContent.pm index 80b43094a7..580fef245d 100644 --- a/Koha/SharedContent.pm +++ b/Koha/SharedContent.pm @@ -60,13 +60,6 @@ sub process_request { my $response = $userAgent->request($mana_request); - if ( $response->code != 200 ) { - return { - code => $response->code, - msg => $response->message, - }; - } - eval { $result = from_json( $response->decoded_content, { utf8 => 1} ); }; $result->{code} = $response->code; if ( $@ ){ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt index df8599e64e..11d4e6c196 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt @@ -19,7 +19,7 @@
[% IF result.code != 201 && result.msg %] [% END %] -- 2.39.5