Author: ashish
Date: Sat Dec 20 09:50:35 2014
New Revision: 1646939
URL:
http://svn.apache.org/r1646939Log:
Applied patch from jira issue - OFBIZ-5685 - Setting a dependent question for question of type 'Boolean Yes/No' is not possible.
Thanks Deepak for the contribution. Thanks Pierre for creating the issue.
Modified:
ofbiz/trunk/specialpurpose/ecommerce/templates/survey/minisurvey.ftl
Modified: ofbiz/trunk/specialpurpose/ecommerce/templates/survey/minisurvey.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/templates/survey/minisurvey.ftl?rev=1646939&r1=1646938&r2=1646939&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/templates/survey/minisurvey.ftl (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/templates/survey/minisurvey.ftl Sat Dec 20 09:50:35 2014
@@ -61,8 +61,8 @@ under the License.
<#if surveyQuestionAndAppl.requiredField?default("N") != "Y">
<option value=""></option>
</#if>
- <option <#if "Y" == selectedOption>selected="selected"</#if>>Y</option>
- <option <#if "N" == selectedOption>selected="selected"</#if>>N</option>
+ <option value="Y" <#if "Y" == selectedOption>selected="selected"</#if>>Y</option>
+ <option value="N" <#if "N" == selectedOption>selected="selected"</#if>>N</option>
</select>
<#elseif surveyQuestionAndAppl.surveyQuestionTypeId == "TEXTAREA">
<textarea class="textAreaBox" cols="40" rows="5" name="answers_${surveyQuestionAndAppl.surveyQuestionId}">${(answer.textResponse)!}</textarea>