You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing #32585 I couldnt understand why my editor didnt display a fields button. It turns out the reason was that if there are no fields the button is never displayed. While I understand the logic behind that it is inconsistent with other xtd-editor plugins such as contacts or modules which do not check to see if records exist before rendering the button.
Looking at the code it appears to be something a bit more complex and that the intention was not to display the observed behavior but is a side effect of a check to ensure the fields for the correct component are displayed.
While testing #32585 I couldnt understand why my editor didnt display a fields button. It turns out the reason was that if there are no fields the button is never displayed. While I understand the logic behind that it is inconsistent with other xtd-editor plugins such as contacts or modules which do not check to see if records exist before rendering the button.
Looking at the code it appears to be something a bit more complex and that the intention was not to display the observed behavior but is a side effect of a check to ensure the fields for the correct component are displayed.
joomla-cms/plugins/editors-xtd/fields/fields.php
Lines 56 to 62 in 538f7fa
The text was updated successfully, but these errors were encountered: