This patch is working absolutely fine. I tested it by following the steps.
- Created a field-type email in a content type.
- Changed the email field display format to Obfuscate and add the link label in configuration.
- Add content in this field.
- Before applying the patch, the email will display in the node content.
- After applying the patch, the email is replaced with the provided link label.
Attaching the screenshots.
Hello EthanT,
Could you add the step to reproduce the issue? I was looking into this but couldn't able to reproduce it.
Hello smustgrave ,
I understand your suggestion to create the test case for the patch. Could you suggest where can be written the test case for this?
The patch was failing. Created a new patch.
#16 is working fine with regular expression without any error/warning.
I attached the screenshot of the configuration and before/after applying patches.
The "Paths to be excluded while generating segments" value should be a valid regex and shouldn't start and end with "/". "/" is already implemented in the code.
Hello smustgrave,
The proposed solution has been updated and also added the tests.
Step to reproduce
- Create a custom form.
- Add a field of type radios/checkbox/tableselct.
- Make the option to be NULL.
- I also attached the screenshot of the PHP error.
- This can also be reproduced if we use a blank taxonomy term as an exposed filter in view.
$form['testempty'] = [
'#type' => 'tableselect',
'#options' => NULL,
'#empty' => $this->t('No Data'),
];
Test
- Create a custom form same as above and apply the patch.
- After applying the patch, the form will display blank data. It will not throw a PHP error and the page will not blank with "Website encounter error."
Patch #25 was failing. I am attaching a new patch.
supriya1992 → created an issue.