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

Implemented mandatory option for multiple choice entries. #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

myxt
Copy link

@myxt myxt commented Aug 26, 2013

For some reason the option to make multiple choice entries mandatory has been removed from ezsurvey, and questions of this type are always mandatory. I don't know the exact motivation for this choice in the past, but fact is that for many people this is unwanted behavior.

@@ -5,7 +5,7 @@
// Created on: <10-Jun-2005 15:55:33 sp>
//

// Copyright (C) 1999-2013 eZ Systems AS. All rights reserved.
// Copyright (C) 1999-2010 eZ Systems AS. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

? :)

@nfrp
Copy link
Contributor

nfrp commented Aug 27, 2013

Thanks Sander for the contribution!!

@andrerom
Copy link
Contributor

+0.5, review ping @patrickallaert, @bjornreiten ;)

@@ -316,6 +316,7 @@ function processViewActions( &$validation, $params )

$postSurveyAnswer = $prefix . '_ezsurvey_answer_' . $this->ID . '_' . $attributeID;
if ( !$http->hasPostVariable( $postSurveyAnswer ) and
$this->attribute('mandatory') and
Copy link
Contributor

Choose a reason for hiding this comment

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

CS: spaces around arguments inside ()

@patrickallaert
Copy link
Contributor

+1, but take into accounts the remarks of @andrerom and mines.
Thanks for the contrib!

@patrickallaert
Copy link
Contributor

Note that an enhancement request should exist in Jira which should be referenced by this PR/commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants