User tests: Successful: Unsuccessful:
In certain circumstances (see below) the module title is rendered multiple times.
Pull Request for Issue #37147 and #12888
Create a custom module and set the style to "card" and publish on all pages
Create an article and load the module inside the article using {loadmodule}
Check the frontend on any page thaat will display both the article and the module
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
I have tested this item
I have tested this item
RTC
RTC
@bembelimen who can check the drone errors? The seems to be not related?
As a quick fix, I would suggest just clone a module, before this code:
joomla-cms/libraries/src/Helper/ModuleHelper.php
Lines 211 to 215 in dd91072
$module = clone $module;
$displayData = array(
'module' => $module,
'params' => $params,
'attribs' => $attribs,
);
With comment why it is cloned.
More advanced fix, is to cache a crome result separated from content
and have a flag $module->chromeRendered
. Similar to what we done for content:
joomla-cms/libraries/src/Helper/ModuleHelper.php
Lines 246 to 250 in dd91072
Happy for you to submit a pr to my branch. Would be good to fix this very old bug
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-08-24 11:52:48 |
Closed_By | ⇒ | brianteeman | |
Labels |
Added:
?
|
This closes the seventh oldest bug report from 2016 and annoyingly the fix has been here on github for 6 months but no one answered.