Skip to content

Commit

Permalink
Fixed issue #17594: Token language does not work in upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 7, 2021
1 parent f7deb99 commit d1cb11b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Token.php
Expand Up @@ -418,7 +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','in','range' => array($this->survey->language) + explode(' ', $this->survey->additional_languages),'allowEmpty' => true,'message' => gT('Language code is invalid in this survey')),
array('language','in','range' => array_merge(array($this->survey->language),explode(' ', $this->survey->additional_languages)),'allowEmpty' => true,'message' => gT('Language code is invalid in this survey')),
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 d1cb11b

Please sign in to comment.