[4.0] Use votelist field type for "Voting" option fields#32945
[4.0] Use votelist field type for "Voting" option fields#32945wilsonge merged 5 commits intojoomla:4.0-devfrom
Conversation
|
I have tested this item ✅ successfully on c76b376 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32945. |
|
I have tested this item ✅ successfully on c76b376 In the backend some forms have Voting immediately before Hits - easy to spot. In others What happens when a form is saved without the plugin enabled: Enable plugin, in Edit form set Voting to Show and save; disable plugin, reload Edit form and save; enable plugin, reload - Voting has gone back to default In the front end I do not have an Oprions tab (my fault?) and the Menu item edit links open the Administrator interface. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32945. |
Sure, but that's not related to this PR, I think. I don't know right now if we have already an issue for that or not. If not, feel free to open one.
That's how I expect it to work.
No, not your fault. That's why my test for frontend doesn't check the edit article form.
Right. But I wanted to be sure it still works. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32945. |
|
Thanks! |
|
Thanks for tests and merge. |
Pull Request for Issue # .
Summary of Changes
Continue the work of PR #31381 for other places where we have "Voting" option fields, i.e. use the "vote list" field type for these fields so they are not shown when the vote plugin is disabled, and fix a few code style issues in the XML files touched.
Thanks @infograf768 for the initial work for this PR.
Testing Instructions
Without the patch of this PR applied, make sure that the "Content - Vote" plugin is disabled.
In Global Configuration, tab "Site", set "Frontend Editing" to "Modules & Menus".
In backend, create a new or edit an existing item of the following types, and check in tab "Options" of the form in section "Options" if there is a field "Voting" shown:
Result: See section "Actual result BEFORE applying this Pull Request", the "Voting" field is shown.
Result: See section "Actual result BEFORE applying this Pull Request", the "Voting" field is shown.
Apply the patch of this PR.
Repeat steps 3 and 4.
Result: See section "Expected result AFTER applying this Pull Request", the "Voting" field is not shown.
Enable the "Content - Vote" plugin.
Repeat again steps 3 and 4.
Result: The "Voting" field is shown.
Actual result BEFORE applying this Pull Request
The "Voting" field is shown regardless if the "Content - Vote" plugin is enabled or not in the following forms in tab "Options", section "Options":
Expected result AFTER applying this Pull Request
The "Voting" field in the forms mentioned above in section "Actual result BEFORE applying this Pull Request" is only shown if the "Content - Vote" plugin is enabled.
Documentation Changes Required
Possibly docs need to be updated to mention that the "Voting" fields handled by this PR are not shown when the "Content - Vote" plugin is disabled.