? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
23 Nov 2018

Pull Request for Issue #23069 .

Summary of Changes

As requested #23069 by @mbabker & @SharkyKZ

Testing Instructions

  • Install 3.9.0
  • enable the Content - ConfirmConsent Plugin
  • configure this plugin to point to a article
  • open a contact page on the website
  • make sure the title is clickable and opens an modal
  • apply this patch
  • make sure it is still opening a modal this time it should be a bs modal

Expected result

own field

Actual result

Rendering Issues

Documentation Changes Required

none

avatar zero-24 zero-24 - open - 23 Nov 2018
avatar zero-24 zero-24 - change - 23 Nov 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Nov 2018
Category Front End Plugins
avatar SharkyKZ
SharkyKZ - comment - 24 Nov 2018

This still outputs the modal when it shouldn't. There can be no echos in field class.

avatar zero-24
zero-24 - comment - 24 Nov 2018

Well i have been told to move it to its own field -> done. If that is not the right solution please suggest the correct solution and i'm happy to apply it ;-)

And please also review the other fields that just output html code inside a field..

avatar mbabker
mbabker - comment - 24 Nov 2018

You don't echo the modal, assign the result of JHtml::_() to a variable (i.e. $html).

Then have your return concatenate the modal and the layout (i.e. return $html . $this->getRenderer($this->renderLabelLayout)->render(array_merge($data, $extraData));

This field uses modals in this way.

avatar zero-24 zero-24 - change - 25 Nov 2018
Labels Added: ?
avatar zero-24
zero-24 - comment - 25 Nov 2018

Patched.

avatar zero-24
zero-24 - comment - 26 Nov 2018

Ok what is the plan here? Patch this in 3.9.1 or move both PRs to 3.9.2?

avatar mbabker
mbabker - comment - 26 Nov 2018

Well if someone would actually test this...

avatar SharkyKZ
SharkyKZ - comment - 26 Nov 2018

There's a styling issue with modal header. It's right-aligned because of label. Perhaps modal output should be added to renderField() instead.

avatar SharkyKZ
SharkyKZ - comment - 26 Nov 2018
avatar zero-24
zero-24 - comment - 26 Nov 2018

Merged thanks @SharkyKZ

avatar SharkyKZ
SharkyKZ - comment - 26 Nov 2018

I have tested this item successfully on 819b32a


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

avatar SharkyKZ
SharkyKZ - comment - 26 Nov 2018

I have tested this item successfully on 819b32a


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

avatar SharkyKZ SharkyKZ - test_item - 26 Nov 2018 - Tested successfully
avatar mbabker mbabker - change - 26 Nov 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-11-26 22:02:18
Closed_By mbabker
avatar mbabker mbabker - close - 26 Nov 2018
avatar mbabker mbabker - merge - 26 Nov 2018

Add a Comment

Login with GitHub to post a comment