Skip to content

Commit

Permalink
Fixed issue #14182: Database error when trying to define a quota usin…
Browse files Browse the repository at this point in the history
…g MS sql server 2012
  • Loading branch information
dominikvitt committed Nov 14, 2018
1 parent 205a0c9 commit 4866c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Survey.php
Expand Up @@ -393,7 +393,7 @@ public function relations()
'defaultlanguage' => array(self::BELONGS_TO, 'SurveyLanguageSetting', array('language' => 'surveyls_language', 'sid' => 'surveyls_survey_id')),
'correct_relation_defaultlanguage' => array(self::HAS_ONE, 'SurveyLanguageSetting', array('surveyls_language' => 'language', 'surveyls_survey_id' => 'sid')),
'owner' => array(self::BELONGS_TO, 'User', 'owner_id',),
'groups' => array(self::HAS_MANY, 'QuestionGroup', 'sid', 'order'=>'group_order ASC'),
'groups' => array(self::HAS_MANY, 'QuestionGroup', 'sid', 'order'=>'groups.group_order ASC'),
'quotas' => array(self::HAS_MANY, 'Quota', 'sid', 'order'=>'name ASC'),
'surveymenus' => array(self::HAS_MANY, 'Surveymenu', array('survey_id' => 'sid')),
'surveygroup' => array(self::BELONGS_TO, 'SurveysGroups', array('gsid' => 'gsid')),
Expand Down

0 comments on commit 4866c18

Please sign in to comment.