Bugzilla – Attachment 174580 Details for
Bug 38136
Refactor database translations (alternative)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38136: Fix cache not being cleared when updating a translation
Bug-38136-Fix-cache-not-being-cleared-when-updatin.patch (text/plain), 1.11 KB, created by
Julian Maurice
on 2024-11-15 13:26:19 UTC
(
hide
)
Description:
Bug 38136: Fix cache not being cleared when updating a translation
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2024-11-15 13:26:19 UTC
Size:
1.11 KB
patch
obsolete
>From 96244955ab5eda5cd8646676d49aee37821f9897 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 15 Nov 2024 14:22:19 +0100 >Subject: [PATCH] Bug 38136: Fix cache not being cleared when updating a > translation > >--- > svc/localization | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/svc/localization b/svc/localization >index 825e9d5187..6638dfff3c 100755 >--- a/svc/localization >+++ b/svc/localization >@@ -29,7 +29,8 @@ sub update_translation { > $localization->lang($lang) if $lang; > $localization->translation($translation) if $translation; > $localization->update(); >- Koha::Caches->get_instance('localization')->clear_from_cache("$source:$lang"); >+ Koha::Caches->get_instance('localization')->clear_from_cache("$source:$original_lang"); >+ Koha::Caches->get_instance('localization')->clear_from_cache("$source:$lang") if $lang; > } catch { > $localization->discard_changes(); > $response->param(error => 1, error_code => 'already_exists'); >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38136
:
172585
|
172804
|
173195
|
173196
|
173197
|
173198
|
174578
|
174579
| 174580 |
174581
|
174598
|
174599