Skip to content

Commit

Permalink
Fixed issue: Database error when importing participants and language …
Browse files Browse the repository at this point in the history
…string is too long
  • Loading branch information
c-schmitz committed Nov 8, 2021
1 parent cf75767 commit 4390efc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/models/Token.php
Expand Up @@ -418,6 +418,7 @@ public function rules()
array('firstname', 'filter', 'filter' => array(self::class, 'sanitizeAttribute')),
array('lastname', 'filter', 'filter' => array(self::class, 'sanitizeAttribute')),
array('language', 'LSYii_Validators', 'isLanguage' => true),
array('language', 'length', 'min' => 2, 'max'=>25, 'allowEmpty'=>true),
array(implode(',', $this->tableSchema->columnNames), 'safe'),
/* pseudo date : force date or specific string ? */
array('remindersent', 'length', 'min' => 0, 'max' => 17),
Expand Down

0 comments on commit 4390efc

Please sign in to comment.