- 🇦🇺Australia amjad1233 Brisbane
Hi @quietone,
+ if (isset($form[$langcode_key]) && (!isset($form[$langcode_key]['#access']) || $form[$langcode_key]['#access'] !== FALSE)) { $language_configuration = ContentLanguageSettings::loadByEntityTypeBundle($entity->getEntityTypeId(), $entity->bundle()); $form[$langcode_key]['#access'] = $language_configuration->isLanguageAlterable(); }
Looks good. In your experience with the patch, is it easy to add a test?
- Status changed to Needs review
about 1 year ago 12:04pm 10 October 2023 - last update
about 1 year ago 29,654 pass - 🇮🇳India priya.chat
Hi @quietone,
Thanks for the patch, I have made a change in the patch #3.
- Status changed to Needs work
about 1 year ago 2:24pm 10 October 2023 - 🇺🇸United States smustgrave
Was previously tagged for tests. Also may need to backtrace why that value is not defined. Usually putting an empty or isset check could be masking a larger option.