Closed (fixed)
Project:
Simplenews
Version:
3.0.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2022 at 14:58 UTC
Updated:
19 Apr 2023 at 18:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joel_osc commentedHere is a patch.
Comment #3
joel_osc commentedComment #4
adamps commentedThanks for the report. I believe the correct fix is much simpler, because all the code we need is on StringTranslationTrait, which is included by a parent class.
I don't hit the bug myself, and I don't see how you do😃. All the calls to
$this->tshould have initialised$this->stringTranslation.Anyway it's still worth fixing. Instead of
$this->stringTranslation->formatPlural()do
$this->formatPlural(Comment #5
shivam_tiwari commentedComment #7
shivam_tiwari commentedComment #8
adamps commentedThanks for the patch. It looks good to me. It would be great if @joel_osc could confirm if the problem has been solved.
Comment #9
joel_osc commentedPatch works perfectly, +1 RBTC. Thank-you all.
Comment #10
adamps commentedComment #12
adamps commentedGreat thanks for reporting back.