- ๐บ๐ธUnited States xpersonas
@anybody, do you not want me contributing to this module? I'm not getting the Drupal community love vibes here. Lol
Regarding that schema change. I agree. Sadly, that schema change did not make sense to me either. That's why I worked to revert that change already.
https://git.drupalcode.org/project/protected_forms/-/merge_requests/8/diffs
That change to the schema was added to the this MR at some point, but didn't really make sense to me.
https://git.drupalcode.org/project/protected_forms/-/merge_requests/8/di...
That's why I reverted it. There were quite a few changes, some that made sense, some that did not, and some that were going in a good direction. Which is why I consolidated all that into the current state of the MR.
I would ask that you review the current state of this MR vs only looking at the commit history.
If this MR stands no chance of ever being approved, that's ok too. Not a big deal. Just let me know so I can take the appropriate action with all my client sites.
- ๐ฉ๐ชGermany Anybody Porta Westfalica
@grevil sadly not.
https://git.drupalcode.org/project/protected_forms/-/commit/40f8328270ff... has been reverted here and that's not what we want. - ๐ฉ๐ชGermany Grevil
@xpersonas I think @anybody accidentally looked at a different MR. This:
Especially I don't like the schema to be reverted.
Doesn't make much sense, as you were the only one working on the current MR AND there were no schema changes in the original commit in https://git.drupalcode.org/project/protected_forms/-/commit/5180c2349098....
- ๐บ๐ธUnited States xpersonas
@tirupati_singh: Thank you for testing things out so thoroughly and adding a video. I see the issue now. I pushed up a fix. If you try to run a new patch with the current diff, that error should go away. At least it did for me. So let me know if you have any issue with it.
- ๐ฎ๐ณIndia Tirupati_Singh
Hi @anybody @xpersonas, I've applied the latest changes in the MR as a patch and it applied cleanly without any error. On applying the patch, the issue mentioned in the comment #31 โจ Possibility to set words as reject pattern Needs review has been resolved. However, when the module is installed and then the patch has been applied, then on visiting the module configuration page i.e.,
/admin/config/content/protected_forms
getting the below error:The website encountered an unexpected error. Try again later. InvalidArgumentException: "0" is an invalid render array key. Value should be an array but got a string. in Drupal\Core\Render\Element::children() (line 97 of core/lib/Drupal/Core/Render/Element.php).
But after reinstalling the module with the applied patch then the above issue has not been encountered.
After applying the patch, a new field Pattern matching has been added with options Check whole word instances and Check within strings. The newly added field provides the option to match the added pattern to match the whole or match only the pattern within the words. Both the provided field options are working fine with the forms and blocking the form submission as per the selected option in the field. I've attached the video clip for your reference and screenshots of before and after fixes as well.
As getting the mentioned error after applying the patch, hence keeping the issue to Need works.
Thanks!