- 🇯🇵Japan ptmkenny
This was fixed in the 3.x branch and the 2.x is no longer being developed, so I'm closing this.
I tend to use the max length property in the field storage settings.
This set the form fields maxlength property and also performs a validation before the form submits.
Now, settings the length to under 11, gives the error
Drupal\Core\Entity\EntityStorageException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'field_xXx_value' at row 1:
This due to the fact that the default encrypted text is: [ENCRYPTED]
Check for the max_length setting from the field definition and shorten the unencrypted value to that length.
Tests did no longer pass, and I added new test for this case. General test adaptions are applied in this issues patch and separately here: #3079620: Make tests run again →
Closed: outdated
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This was fixed in the 3.x branch and the 2.x is no longer being developed, so I'm closing this.