Don't Run Foreach Loop If No Unique Fields Defined

Created on 16 March 2017, almost 8 years ago
Updated 2 May 2024, 8 months ago

I'm seeing watchdog messages like following after having module 'unique_field' installed:

Warning: Invalid argument supplied for foreach() in unique_field_form_validate() (line 306 of /var/www/modules/contrib/unique_field/unique_field.module)

In those 3 hook_...form_validate methods, the foreach loops shouldn't be executed if no unique fields defined for some node types, taxonomies and users. A patch file is included to address the issue.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada deminy Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024