Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294883

Fix comparison check for field changes

$
0
0

Problem/Motivation

When loose comparison (++) is used, PHP changes casts values to different types to see if they match. This means numeric strings may be considered equal even if their string values are different.

Steps to reproduce

  1. Set a field value to 1.
  2. Try to change it to +1.
  3. Drupal sees the field as unchanged.

Proposed resolution

Use exact comparison to check if field has changed.

Remaining tasks

  1. Create merge request.
  2. Create tests.
  3. Review.
  4. Merge.

User interface changes

None.

Introduced terminology

None.

API changes

None.

Data model changes

None.

Release notes snippet


Viewing all articles
Browse latest Browse all 294883

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>