On the pat /*projects/types I cannot add more than 3 project types -
adding a 4th type ends up in WOSD message: The website encountered an unexpected error. Please try again later.
dblog report:
*/projects/types
Message Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'short' at row 1: INSERT INTO {ek_project_type} (type, gp, comment, short) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => Drupal\Component\Render\HtmlEscapedText Object ( [string:protected] => Purchase ) [:db_insert_placeholder_1] => Drupal\Component\Render\HtmlEscapedText Object ( [string:protected] => Aquisition ) [:db_insert_placeholder_2] => Drupal\Component\Render\HtmlEscapedText Object ( [string:protected] => ) [:db_insert_placeholder_3] => Drupal\Component\Render\HtmlEscapedText Object ( [string:protected] => Purchase ) ) in Drupal\ek_projects\Form\EditTypes->submitForm() (line 356 of […]/modules/sandbox/ek/ek_projects/src/Form/EditTypes.php).
Comments
Comment #2
adominique commentedThe issue is not about the number of projects type description but about the length of the "short name".
This field is limited to 5 characters but the form does not filter properly this field.
This length is limited because this info may be used in serial code formatting.
Will correct the form filter.
Comment #3
adominique commentedFixed.