After installing the module and visiting the site (containing a search form) I get this:

Warning: Undefined array key "form_id" in readonlymode_check_form_validate() (line 201 of modules/contrib/readonlymode/readonlymode.module).

Warning: Trying to access array offset on null in readonlymode_check_form_validate() (line 201 of modules/contrib/readonlymode/readonlymode.module).

Command icon 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

norman.lol created an issue. See original summary.

norman.lol’s picture

Status: Active » Needs review

astonvictor made their first commit to this issue’s fork.

astonvictor’s picture

I was not able to reproduce the issue with the search form, but to be sure, I updated the validation to first check for an old value and then to use the value from the #form_id attribute.

astonvictor’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

norman.lol’s picture

Thank you! 😊

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.