Commit de205bf8 authored by KR Moorhouse's avatar KR Moorhouse Committed by Iain Poulson

Added Number check to ensure that js reports proper values for calcs of multi-select.

parent ff2e11f3
......@@ -136,7 +136,7 @@ define([], function() {
*/
_.each( fieldModel.get( 'value' ), function( val ) {
var tmp_opt = _.find( options, function( opt ) { return opt.value == val } );
calc_value += tmp_opt.calc;
calc_value += Number( tmp_opt.calc );
} );
} else {
/*
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment