? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
20 Jul 2017

This PR changes the vote setting in the article options to the new switcher class for options

An added benefit it that before when the plugin was not enabled the select list was empty. Now if the plugin is not enabled there is nothing displayed in the values. NOTE if someone knows how to improve this perhaps by hiding the label as well that would be great

Before with plugin enabled

screenshotr16-55-53

Before with plugin disabled

screenshotr17-05-42

After with plugin enabled

screenshotr17-02-52

After with plugin disabled

screenshotr17-02-18

avatar brianteeman brianteeman - open - 20 Jul 2017
avatar brianteeman brianteeman - change - 20 Jul 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jul 2017
Category Administration com_content
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 20 Jul 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jul 2017

I have tested this item successfully on 34eb094

Shouldn't the 2 Labels be hidden if Plugin is disabled?


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

avatar brianteeman
brianteeman - comment - 20 Jul 2017

@franz-wohlkoenig as I wrote originally

NOTE if someone knows how to improve this perhaps by hiding the label as well that would be great

;)

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jul 2017

äh*g that happens if test starts to quickly …

avatar mbabker
mbabker - comment - 20 Jul 2017

I'm actually at the point where I'd rather move the voting plugin logic in full into com_content and drop the plugin. With the addition of the filtering options for vote data in 3.7, there isn't a clean way now to fully separate the plugin and the component (#12331 for full context).

avatar brianteeman
brianteeman - comment - 20 Jul 2017

@mbabker I agree with you on that but in the absence of that code (or until it is merged) this is still valid

avatar mbabker
mbabker - comment - 20 Jul 2017

Agree. I want to say there's something in JForm that lets you conditionally hide fields based on another extension being installed/enabled, but I don't remember how that's triggered off hand.

avatar brianteeman
brianteeman - comment - 20 Jul 2017

PR welcome ;)

avatar C-Lodder
C-Lodder - comment - 20 Jul 2017

@brianteeman you also need to switch the field options around when you use the switcher. I add comments in there for you

avatar brianteeman brianteeman - change - 20 Jul 2017
Labels Added: ?
avatar C-Lodder C-Lodder - test_item - 20 Jul 2017 - Tested successfully
avatar C-Lodder
C-Lodder - comment - 20 Jul 2017

I have tested this item successfully on d777a2f

code review ?


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

avatar wilsonge wilsonge - change - 20 Jul 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-07-20 20:30:02
Closed_By wilsonge
avatar wilsonge wilsonge - close - 20 Jul 2017
avatar wilsonge wilsonge - merge - 20 Jul 2017

Add a Comment

Login with GitHub to post a comment