Problem/Motivation

The name_element_validate() function contains an improperly formatted not-equal operator.

Steps to reproduce

if (!$empty && (count($minimum_components) != count(array_intersect_key($minimum_components, $item_components)))) {

Proposed resolution

Correct it with an additional equal character.

if (!$empty && (count($minimum_components) !== count(array_intersect_key($minimum_components, $item_components)))) {

Issue fork name-3555835

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

jcandan created an issue. See original summary.

jcandan’s picture

Title: Correct partially filled out not equal conditional needs double equal » Correct not equal operator missing double equal
Issue summary: View changes

jcandan’s picture

Assigned: jcandan » Unassigned
Status: Active » Needs review

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

bluegeek9 changed the visibility of the branch 8.x-1.x to hidden.

  • bluegeek9 committed 001fbc37 on 8.x-1.x authored by jcandan
    [#3555835] feat: Correct not equal operator missing double equal
    
bluegeek9’s picture

Status: Needs review » Fixed
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:
  • Triage issues and adding more context to existing issues.
  • Flagging Name Field as a favorite on the project page to help others discover it and show your support.

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.

Status: Fixed » Closed (fixed)

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