Success

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
7 Jul 2016

Pull Request for Issue #11047.

Testing Instructions

Follow these steps before and after applying this patch:

Add this snippet to administrator/components/com_content/models/forms/article.xml:

        <field name="extrafield" type="editor"
            label="An Extra Field" description="Whatever"
            filter="JComponentHelper::filterText" buttons="true" />

In administrator/components/com_content/views/article/tmpl/edit.php render the new field:

<?php echo $this->form->getInput('extrafield'); ?>

Go to any media form field (the "Images and links" tab works for this), select an image, and try to close the modal in any available manner (the insert/cancel buttons, the X icon, or clicking outside the modal).

Expected result

The modal is closed.

Actual result

The modal does not close. In the browser console is a "Uncaught RangeError: Maximum call stack size exceeded" message.

Note:

The problem is the way the scripts added to the document and consequently executed. Ideal solution will be to load and execute the overrides for jModalClose and SqueezeBox.close last but that is impossible with current Joomla API, therefore the ugly code in the behaviour.php.

avatar dgt41 dgt41 - open - 7 Jul 2016
avatar brianteeman brianteeman - change - 7 Jul 2016
Category JavaScript Libraries
avatar ggppdk ggppdk - test_item - 7 Jul 2016 - Tested successfully
avatar ggppdk
ggppdk - comment - 7 Jul 2016

I have tested this item successfully on 262a4ae

Tested both
#10774 (tested Joomla article form)
#11047 (tested form with 2 tinymce editors, and custom code to open modal for selecting image)

Also tested bootstrap modals (associations)
And in the case of creating dynamically extra textareas and attaching tinymce, then in this case too, no problems


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11048.

avatar ggppdk
ggppdk - comment - 7 Jul 2016

This should be in J3.6.0 !

avatar brianteeman brianteeman - change - 7 Jul 2016
Labels Added: ?
avatar tranduyhung tranduyhung - test_item - 8 Jul 2016 - Tested successfully
avatar tranduyhung
tranduyhung - comment - 8 Jul 2016

I have tested this item successfully on 262a4ae

Thank you! The problem is fixed.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11048.

avatar zero-24 zero-24 - change - 8 Jul 2016
Status New Ready to Commit
avatar zero-24
zero-24 - comment - 8 Jul 2016

RTC. Thanks.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11048.

avatar mbabker mbabker - test_item - 8 Jul 2016 - Tested successfully
avatar mbabker
mbabker - comment - 8 Jul 2016

I have tested this item successfully on 262a4ae


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11048.

avatar brianteeman
brianteeman - comment - 8 Jul 2016

Manually added rtc label

avatar brianteeman brianteeman - change - 10 Jul 2016
Milestone Added:
avatar Kubik-Rubik
Kubik-Rubik - comment - 11 Jul 2016

Thank you @dgt41 and testers!

avatar Kubik-Rubik Kubik-Rubik - reference | f7c7aa5 - 11 Jul 16
avatar Kubik-Rubik Kubik-Rubik - merge - 11 Jul 2016
avatar Kubik-Rubik Kubik-Rubik - close - 11 Jul 2016
avatar mmefectiva
mmefectiva - comment - 27 Jul 2016

Thanks for the info. I've tried to apply directly, but i don't find the exact node or place in the code to aply that.
Can'u explain where is the right place to put the snipet in article.xml and render the new field in edit.php? Thanks in advance.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11048.

avatar ggppdk
ggppdk - comment - 27 Jul 2016

@mmefectiva

You are looking at the wrong place, this was a fix for J3.6.0,

the fix for J3.6.1 is here:
#11097

Add a Comment

Login with GitHub to post a comment