View | Details | Raw Unified | Return to bug 38136
Collapse All | Expand All

(-)a/svc/localization (-2 / +2 lines)
Lines 29-35 sub update_translation { Link Here
29
                $localization->lang($lang) if $lang;
29
                $localization->lang($lang) if $lang;
30
                $localization->translation($translation) if $translation;
30
                $localization->translation($translation) if $translation;
31
                $localization->update();
31
                $localization->update();
32
                Koha::Caches->get_instance('localization')->clear_from_cache("$source:$lang");
32
                Koha::Caches->get_instance('localization')->clear_from_cache("$source:$original_lang");
33
                Koha::Caches->get_instance('localization')->clear_from_cache("$source:$lang") if $lang;
33
            } catch {
34
            } catch {
34
                $localization->discard_changes();
35
                $localization->discard_changes();
35
                $response->param(error => 1, error_code => 'already_exists');
36
                $response->param(error => 1, error_code => 'already_exists');
36
- 

Return to bug 38136