Skip to content

Commit

Permalink
Fixed issue: Cannot create URL panel parameters without assigning it …
Browse files Browse the repository at this point in the history
…to a question
  • Loading branch information
c-schmitz committed Mar 7, 2024
1 parent bbc3eb6 commit 2fdad64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/models/SurveyURLParameter.php
Expand Up @@ -31,11 +31,10 @@ class SurveyURLParameter extends LSActiveRecord
*/
public function rules()
{
return [
return [
['sid', 'required'],
['sid', 'numerical', 'integerOnly' => true],
['parameter', 'required'],
['targetqid', 'required'],
['targetqid', 'numerical', 'integerOnly' => true],
['targetsqid', 'numerical', 'integerOnly' => true, 'allowEmpty' => true],
];
Expand Down

1 comment on commit 2fdad64

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? And ? We need a target qid here.

What is the issue ?

Please sign in to comment.