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

Field not saved when change of 0 on string start

$
0
0

Problem/Motivation

During the modification of a taxonomy term text field by adding or removing a "0" as first character if it is the only change, it isn't saved. The problem is the same with the other entities (Node, User).

Examples :
- Changing 01 to 1, stay 01.
- Changing 1 to 01, stay 1.
- Changing 01 to 2, work 2 is saved.

Steps to reproduce

Create a taxonomy with a text field, create an instance with the value "01" save. Then modify, change the value to 1, save.

Proposed resolution

On the save process, change the equals test to take this 0 into account.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 293211

Trending Articles



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