Skip to content

Commit

Permalink
Fixed issue: Slowdowns with array filter question attribute
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9575 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Dec 4, 2010
1 parent 1d1b166 commit 7eeff14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common.php
Expand Up @@ -4631,7 +4631,7 @@ function getArrayFiltersForGroup($surveyid,$gid)
$grows2 = $grows;
foreach ($grows as $qrow) // Cycle through questions to see if any have list_filter attributes
{
$qresult = getQuestionAttributes($qrow['qid']);
$qresult = getQuestionAttributes($qrow['qid'], $qrow['type']);
if (isset($qresult['array_filter'])) // We Found a array_filter attribute
{
$val = $qresult['array_filter']; // Get the Value of the Attribute ( should be a previous question's title in same group )
Expand Down Expand Up @@ -4679,7 +4679,7 @@ function getArrayFilterExcludesCascadesForGroup($surveyid, $gid="", $output="qid
foreach ($grows as $qrow) // Cycle through questions to see if any have list_filter attributes
{
$qidtotitle[$qrow['qid']]=$qrow['title'];
$qresult = getQuestionAttributes($qrow['qid']);
$qresult = getQuestionAttributes($qrow['qid'],$qrow['type']);
if (isset($qresult['array_filter_exclude'])) // We Found a array_filter attribute
{
$val = $qresult['array_filter_exclude']; // Get the Value of the Attribute ( should be a previous question's title in same group )
Expand Down Expand Up @@ -4769,7 +4769,7 @@ function getArrayFilterExcludesForGroup($surveyid,$gid)
$grows2 = $grows;
foreach ($grows as $qrow) // Cycle through questions to see if any have list_filter attributes
{
$qresult = getQuestionAttributes($qrow['qid']);
$qresult = getQuestionAttributes($qrow['qid'],$qrow['type']);
if (isset($qresult['array_filter_exclude'])) // We Found a array_filter attribute
{
$val = $qresult['array_filter_exclude']; // Get the Value of the Attribute ( should be a previous question's title in same group )
Expand Down

0 comments on commit 7eeff14

Please sign in to comment.