Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #44 from praekelt/feature/issue-44-fix-string-repl…
Browse files Browse the repository at this point in the history
…acement-error-in-combination-rule-javascript

Fix error in combination rule logic
  • Loading branch information
nathanbegbie committed Nov 8, 2017
2 parents 88820bd + 3264ad0 commit c5c7c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion molo/surveys/static/js/survey-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ $(function(){
$.each(ruleIndex, function(index_outer, form){
$.each(form.blockIds, function(index_inner, value) {
ruleValueTextPairs.push({
"value": form.ruleName.replace(" ", "") + "_" + String(index_inner),
"value": form.ruleName.replace(/ /g, "") + "_" + String(index_inner),
"text": form.ruleName + " " + String(index_inner + 1),
});
});
Expand Down

0 comments on commit c5c7c2c

Please sign in to comment.