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

dotCMS/core#1807 Save of Multi Select field fails if Velocity var name of field is properties #19750

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -763,8 +763,8 @@
}
%>
</select>
<input type="hidden" name="<%=field.getFieldContentlet()%>" id="<%=field.getVelocityVarName()%>MultiSelect" value="<%= value %>"/>
<script type="text/javascript">
<input type="hidden" name="<%=field.getFieldContentlet()%>" id="<%=field.getVelocityVarName()%>MultiSelectHF" value="<%= value %>"/>
<script type="text/javascript">
function update<%=field.getVelocityVarName()%>MultiSelect() {
var valuesList = "";
var multiselect = $('<%=field.getVelocityVarName()%>MultiSelect');
Expand All @@ -776,7 +776,7 @@
valuesList += multiselect.options[i].value;
}
}
$('<%=field.getVelocityVarName()%>MultiSelect').value = valuesList;
$('<%=field.getVelocityVarName()%>MultiSelectHF').value = valuesList;
}

update<%=field.getVelocityVarName()%>MultiSelect();
Expand Down