-
Notifications
You must be signed in to change notification settings - Fork 22
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
base: master
Are you sure you want to change the base?
Conversation
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? :)
Thanks Sander for the contribution!! |
+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 |
There was a problem hiding this comment.
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 ()
+1, but take into accounts the remarks of @andrerom and mines. |
Note that an enhancement request should exist in Jira which should be referenced by this PR/commits. |
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.