Skip to content

Commit

Permalink
Dev: Condition 'sid IS NULL' breaks template list
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Nov 1, 2017
1 parent 96c0d73 commit 739dfc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/TemplateConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function search()
$criteria=new CDbCriteria;

//Don't show surveyspecifi settings on the overview
$criteria->addCondition('sid IS NULL');
//$criteria->addCondition('sid IS NULL');
$criteria->addCondition('gsid IS NULL');

$criteria->compare('id',$this->id);
Expand Down

2 comments on commit 739dfc3

@LouisGac
Copy link
Contributor

Choose a reason for hiding this comment

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

SID must be nulled else it will show doublons

@olleharstedt
Copy link
Collaborator Author

@olleharstedt olleharstedt commented on 739dfc3 Nov 1, 2017

Choose a reason for hiding this comment

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

This breaks template list on my machine. But yes, this is not a proper fix.

Please sign in to comment.