Problem/Motivation
Since 2.2.1, the descriptions under each meta tag field on the forms are gone.
#3398796: Add PHP attributes for all plugins changed the constructors in MetaNameBase and GroupBase to read the description from $configuration['description']. It's stored in $plugin_definition['description'], so it is always empty.
Steps to reproduce
Open the meta tag defaults form (/admin/config/search/metatag/global) and expand a group. The fields have no help text.
Proposed resolution
Read the description from $plugin_definition in both constructors, and fall back to '' like 2.2.0 did.
Remaining tasks
Create an MR.
Related issues
Issue fork metatag-3633005
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
f0ns commentedComment #4
gillesbailleux@f0ns: on two Drupal CMS instances using D11.4.11 and equipped with PHP 8.5.12, all the descriptions under each meta tag field remain visible (either on [site:base-url]/admin/config/search/metatag/global and nodes) after upgrading from v2.2.0 to v2.2.1
I did not update any non-Drupal CMS D11 instance, so I cannot reproduce the issue.
Comment #5
gillesbailleux@f0ns: after upgrading a D11.4.11 instance equipped with PHP 8.3.36, all the descriptions under each meta tag field remain visible (either on [site:base-url]/admin/config/search/metatag/global and nodes) after upgrading from v2.2.0 to v2.2.1
Comment #6
f0ns commentedThat's weird.
I just did a test to be 100% sure and here is the result
Before
After
Comment #7
gillesbailleux@f0ns: my apologies as I have exactly the same situation you mention in the printescreen above.
The "Set to to disable inheritance of the parent value and prevent the output of this metatag entirely." description remains but the whole description has disappeared.
Comment #8
f0ns commentedNo problem!
After rereading my initial post the steps to reproduce perhaps were not clear enough.
Thanks for testing!
Comment #9
damienmckennaThank you for the bug report, I'm sorry another bug showed up. I opened #3633219: Add test coverage for plugin descriptions so that we can have test coverage for these descriptions to make sure they don't disappear again.
Comment #11
damienmckennaCommitted. Thanks again.