Pull Request for Issue #33368, alternative for #33372
Summary of Changes
This PR modifies code so that the field contexts filter will only be displayed if there are more than one option. Compare to #33372, it also remove the unnecessary mark up, so it is a bit better.
Testing Instructions
Apply patch
Go to Content -> Fields, Content -> Field Groups, make sure you still see contexts filter (contains Articles, Category).
Go to Users -> Fields, Users -> Field Groups, make sure you do not see the filter anymore (before, the filter only contains on option Users ,so it is useless)
Go to Users -> Fields, view source of the page, make sure you don't see the useless mark up which @Quy mentioned here #33372 (comment)
I have tested this item✅ successfully on e111401
Perfect! Thank you!!!
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33387.