User tests: Successful: Unsuccessful:
Pull Request for Issue #41516 .
The HTMLDocument::setHeadData
restores scriptOptions
correctly, hovewer any further call of Text::script
override previously restored strings.
Please follow #41516 .
Or add :
Text::script('JYES');
$this->document->addScriptOptions('yes', 'Yes');
$this->document->getWebAssetManager()
->addInlineScript('console.log(Joomla.getOptions("yes", "nope") + " " + Joomla.Text._("JYES", "Nope"))', [], ['type' => 'module']);
After this line
First request: Yes Yes
All following requests: Yes Nope
Every reques there a log Yes Yes
Please select:
Category | ⇒ | Libraries |
Status | New | ⇒ | Pending |
This pull request has been automatically rebased to 4.4-dev.
I have tested this item ✅ successfully on 42b0d7a
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
bug
PR-4.4-dev
|
RTC
Labels |
Added:
?
|
Labels |
Added:
?
Removed: ? |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-11-15 09:34:59 |
Closed_By | ⇒ | laoneo | |
Labels |
Added:
?
Removed: ? |
Thanks!
I have tested this item ✅ successfully on 42b0d7a
On this one I did not realise at first that I needed to look in the Console Logs which is not selected by default.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41543.