? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
3 Jan 2017

Pull Request for Issue #13400

Summary of Changes

Don't let the class tag alone without content

Testing Instructions

Create an media field and don´t fill the image class field.

There is an empty class attribute shown in the Source code
image

Apply the patch and make sure there is no class tag anymore but if you set a class it comes back ?

Documentation Changes Required

none

avatar zero-24 zero-24 - open - 3 Jan 2017
avatar zero-24 zero-24 - change - 3 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jan 2017
Category Front End com_fields
avatar laoneo
laoneo - comment - 4 Jan 2017

Can we put this one on hold till #13319 is merged. Then this one needs to be redone in the plugin itself. Thanks.

avatar zero-24 zero-24 - change - 10 Jan 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 10 Jan 2017
Category Front End com_fields Front End Plugins
avatar zero-24
zero-24 - comment - 10 Jan 2017

@coolcat-creations @laoneo i have updated the PR after the changes in #13319 please review and test here.

avatar laoneo
laoneo - comment - 11 Jan 2017

Please use $fieldParams->get('image_class') to get the image class. The inheritance from the plugin works.

avatar zero-24
zero-24 - comment - 11 Jan 2017

done @laoneo

avatar laoneo
laoneo - comment - 11 Jan 2017

Just saw that getting the directory is also wrong, can you change it to $fieldParams->get('directory', '/') as well?

avatar zero-24
zero-24 - comment - 11 Jan 2017

fixed.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Jan 2017

I have tested this item ? unsuccessfully on f044804

Before Patch:

<dd class="field-entry " id="field-entry-8">
	<span class="field-label">Media: </span>
	<span class="field-value"><img src="/Joomla/images/joomla_black.png" class=""/></span>
</dd>

After Patch:

<dd class="field-entry " id="field-entry-8">
	<span class="field-label">Media: </span>
	<span class="field-value"><img src="/Joomla/images/joomla_black.png""/></span>
</dd>
</dl>

There ist a " to much at joomla_black.png""


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 14 Jan 2017 - Tested unsuccessfully
avatar zero-24
zero-24 - comment - 17 Jan 2017

@laoneo @franz-wohlkoenig the last commits should do it thanks!.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Jan 2017

I have tested this item successfully on 14c96a6

After PR empty Class is gone.


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 17 Jan 2017 - Tested successfully
avatar laoneo
laoneo - comment - 17 Jan 2017

I have tested this item successfully on c1f1a4b


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

avatar laoneo laoneo - test_item - 17 Jan 2017 - Tested successfully
avatar laoneo
laoneo - comment - 17 Jan 2017

@franz-wohlkoenig please test it with a class and without. For me it worked.

avatar laoneo
laoneo - comment - 26 Jan 2017

@franz-wohlkoenig can you retest this one, that we can get it in?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Jan 2017

I have tested this item successfully on fd069e6

With and without a class (i.e. span4 offset1) class isn't shown in source code.


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 26 Jan 2017 - Tested successfully
avatar laoneo
laoneo - comment - 26 Jan 2017

Ready for commit then, thanks.

avatar jeckodevelopment jeckodevelopment - change - 26 Jan 2017
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 26 Jan 2017

RTC


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

avatar rdeutz rdeutz - change - 27 Jan 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-01-27 18:22:10
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 27 Jan 2017
avatar rdeutz rdeutz - merge - 27 Jan 2017

Add a Comment

Login with GitHub to post a comment