Skip to content

Commit

Permalink
Merge pull request dotCMS#5884 from dotCMS/issue-5820-Error-in-consol…
Browse files Browse the repository at this point in the history
…e-when-enable-the-mandatory-field

fixes dotCMS#5820 Error in console when enable the mandatory field
  • Loading branch information
Jason Tesser committed Jul 17, 2014
2 parents 1904068 + e3d8417 commit eb1e0dd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions dotCMS/html/portlet/ext/workflows/schemes/edit_scheme.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,14 @@
<%} %>
<tr>
<td align="right"><%=LanguageUtil.get(pageContext, "Mandatory")%>:</td>
<td><input type="checkbox" name="schemeMandatory"
id="schemeMandatory" dojoType="dijit.form.CheckBox" value="true"
<%=(scheme.isMandatory()) ? "checked='true'" : ""%> onClick="schemeAdmin.toggleInitialAction">
<td>
<%if(firstStep !=null){ %>
<input type="checkbox" name="schemeMandatory"
id="schemeMandatory" dojoType="dijit.form.CheckBox" value="true"
<%=(firstStep !=null) ? "disabled ='false'" : "disabled ='true'"%> onClick="schemeAdmin.toggleInitialAction">
<%}else{ %>
<%=LanguageUtil.get(pageContext, "Add-Workflow-Step") %>
<%} %>
</td>
</tr>

Expand All @@ -84,7 +89,7 @@
<tr <%=(!scheme.isMandatory()) ? "style='display:none;'" : ""%> id="forceInitialAction">
<td nowrap="true" align="right"><%=LanguageUtil.get(pageContext, "Default-Initial-Action")%>:</td>
<td>
<%if(actions != null) {%>
<%if(!actions.isEmpty()) {%>
<select name="schemeEntryAction" dojoType="dijit.form.FilteringSelect" style="width:250px;">
<option value=""><%=LanguageUtil.get(pageContext, "None") %></option>
<%for(WorkflowAction action : actions){ %>
Expand Down

0 comments on commit eb1e0dd

Please sign in to comment.