? Pending

User tests: Successful: Unsuccessful:

avatar corejoomla
corejoomla
25 Dec 2018

When loaded both captcha and editor plugins on same page, onDisplay function on both plugins conflict with each other as they have different number of parameters.

Pull Request for Issue #23322 .

Summary of Changes

Added a new proxy function for b/w compatibility and renamed the onDisplay function to onDisplayCaptcha

Testing Instructions

On any form page where the editor loaded, add below code

JPluginHelper::importPlugin('captcha');
$app->triggerEvent('onInit', array(null, 'ca_captcha'));
$recaptcha = $app->triggerEvent('onDisplay', array(null, 'ca_captcha', 'class=""'));
echo (isset($recaptcha[0])) ? $recaptcha[0] : '';

Expected result

Captcha loaded fine and editor works fine.

Documentation Changes Required

Need to update the documentation with the renamed onDisplayCaptcha function name.

avatar corejoomla corejoomla - open - 25 Dec 2018
avatar corejoomla corejoomla - change - 25 Dec 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Dec 2018
Category Front End Plugins
avatar corejoomla corejoomla - change - 25 Dec 2018
Labels Added: ?
avatar corejoomla
corejoomla - comment - 5 Mar 2019

Can this PR merged or have any issues?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Mar 2019

@corejoomla every PR needs minimum2 successfully Tests by other Volunteers..

avatar Fedik
Fedik - comment - 9 Mar 2019

The captcha and the editor plugins are a bit special, they do not use onInit/onDisplay as event, but as "callback".

Look for example Captcha::display, and similar thing is for the editor.
And how it used in the captcha field

And there a reasons for it.
So the fix are not correct.
Here actually nothing to fix, you just need to use Editor/Captcha correctly.

avatar corejoomla corejoomla - change - 20 Mar 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-03-20 17:45:28
Closed_By corejoomla
avatar corejoomla corejoomla - close - 20 Mar 2019

Add a Comment

Login with GitHub to post a comment