You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to save or preview a record when there's a number field with a value >1000. This occurs in both Safari and Chrome on MacOs.
No problems with Firefox.
The problem appeared in Bolt 5.1.9.
Example:
The field description in my contenttype:
season:
type: number
mode: integer
max: 10000
The value in the field (added in an older version of Bolt)
As you can see a message appears, this happens while trying to save the record.
This is the html of this particular field in Chrome/Safari. Note the min and max values. <input id="field-season" name="fields[season]" type="number" step="1" min="0" max="1000" placeholder class="form-control">
This is the same field in Firefox. Note the absence of the min and max values. <input id="field-season" name="fields[season]" type="number" step="1" placeholder="" class="form-control">
Somehow both Safari and Chrome add min and max values to a number field.
The max value set in contenttypes.yaml doesn't seem to come trough.
I tested this on a production website and a clean Bolt 5.1.9 installation.
Tested with:
Firefox 100.0.1 (no issues)
Safari 15.3 (issues)
Chrome 102.0.5005.61 (issues)
Details
Question
Answer
Relevant Bolt Version
5.1.9
Bolt 5.1.9
System Information:
Install type: Composer install
Database: mysql 10.5.15-MariaDB - 127.0.0.1 via TCP/IP
PHP version: 8.0.19
Symfony version: v5.4.9
Operating system: Linux - 4.18.0-348.2.1.el8_5.x86_64
Assets version: 5.1.7
File size upload limit: 8 MB
Memory limit: 1024M
Reproduction
Add a number field to a contenttype
Add a value larger than 1000 to that field in the editor
Try to save the record. Now, in Chrome and Safari you are unable to use both the "save changes" and the "Preview" buttons
The text was updated successfully, but these errors were encountered:
I am unable to save or preview a record when there's a number field with a value >1000. This occurs in both Safari and Chrome on MacOs.
No problems with Firefox.
The problem appeared in Bolt 5.1.9.
Example:
The field description in my contenttype:
The value in the field (added in an older version of Bolt)
![Screenshot 2022-06-01 at 16 10 00](https://user-images.githubusercontent.com/2750653/171472927-f7df27c1-816c-4b07-be9b-bc82062ce588.png)
As you can see a message appears, this happens while trying to save the record.
This is the html of this particular field in Chrome/Safari. Note the min and max values.
<input id="field-season" name="fields[season]" type="number" step="1" min="0" max="1000" placeholder class="form-control">
This is the same field in Firefox. Note the absence of the min and max values.
<input id="field-season" name="fields[season]" type="number" step="1" placeholder="" class="form-control">
I tested this on a production website and a clean Bolt 5.1.9 installation.
Tested with:
Firefox 100.0.1 (no issues)
Safari 15.3 (issues)
Chrome 102.0.5005.61 (issues)
Details
Bolt 5.1.9
System Information:
Install type: Composer install
Database: mysql 10.5.15-MariaDB - 127.0.0.1 via TCP/IP
PHP version: 8.0.19
Symfony version: v5.4.9
Operating system: Linux - 4.18.0-348.2.1.el8_5.x86_64
Assets version: 5.1.7
File size upload limit: 8 MB
Memory limit: 1024M
Reproduction
The text was updated successfully, but these errors were encountered: