Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue #08013: 'printanswershonorsconditions' does not work #97

Merged
merged 1 commit into from Jul 30, 2013

Conversation

mfaber
Copy link
Contributor

@mfaber mfaber commented Jul 15, 2013

DEV: implementation was missing in getFullResponseTable() and
PrintanswersControllers.php

DEV: implementation was missing in getFullResponseTable() and
PrintanswersControllers.php
@@ -6013,7 +6013,7 @@ function getQuotaCompletedCount($iSurveyId, $quotaid)
* @param mixed $sLanguageCode
* @param boolean $bHonorConditions Apply conditions
*/
function getFullResponseTable($iSurveyID, $iResponseID, $sLanguageCode, $bHonorConditions=false)
function getFullResponseTable($iSurveyID, $iResponseID, $sLanguageCode, $bHonorConditions=true)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Needed to change default ? Seeing at top line : you send good boolean before .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The $bHonorConditions was not used in the if-condition later on. (lines 6029/6055)
So, by default, the getFullResponseTable()-function behaved like $bHonorConditions was set to true. (By default, getFullResponseTable() only gave "relevant" answers).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh yes,

A function parameters not used .... it's really a bad issue .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will check if the function is called somewhere WITH this parameter in other files...so we do no get surprises.
I will also make the changes for 2.05 and issue another pull request, ok?

mennodekker added a commit that referenced this pull request Jul 30, 2013
Fixex issue #8013: 'printanswershonorsconditions' does not work
@mennodekker mennodekker merged commit 4eb637c into LimeSurvey:master Jul 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants