?
avatar mbabker
mbabker
7 Jul 2016

Steps to reproduce the issue

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.

System information (as much as possible)

Clone of the CMS as of bb1010a

avatar mbabker mbabker - open - 7 Jul 2016
avatar dgt41
dgt41 - comment - 7 Jul 2016

@mbabker my bad! will do a PR in few minutes

avatar dgt41
dgt41 - comment - 7 Jul 2016

Check #11048

avatar brianteeman
brianteeman - comment - 7 Jul 2016

Closed as we have a pr

avatar brianteeman brianteeman - close - 7 Jul 2016

Add a Comment

Login with GitHub to post a comment