From 85b8535c25696523d56aff07c16e7b0218c927e3 Mon Sep 17 00:00:00 2001
From: baigner <benedikt.aigner@rwth-aachen.de>
Date: Wed, 24 Oct 2018 08:34:54 +0200
Subject: [PATCH] Bug fix in MDO systems interface: nominal value, upper and
 lower bound for variable assignment.

Former-commit-id: 51c03089fedab4820538ce2468fdc3b54fd5ece4
---
 kadmos/vistoms/templates/VISTOMS.html | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/kadmos/vistoms/templates/VISTOMS.html b/kadmos/vistoms/templates/VISTOMS.html
index 27404cc74..92afb2845 100644
--- a/kadmos/vistoms/templates/VISTOMS.html
+++ b/kadmos/vistoms/templates/VISTOMS.html
@@ -19180,9 +19180,9 @@
 									+"\Lower Bound:   <input type='text' id='lowerBound' name='lowerBound' />\</form>", 
 							callback: function(result){
 									if(result){
-										theVariableData.nominalValue = $('#nominalValue').submit()[0].value;
-										theVariableData.upperBound = $('#upperBound').submit()[0].value;
-										theVariableData.lowerBound = $('#lowerBound').submit()[0].value;
+										theVariableData.nominalValue = parseFloat($('#nominalValue').submit()[0].value.replace(/,/g, ''));
+										theVariableData.upperBound = parseFloat($('#upperBound').submit()[0].value.replace(/,/g, ''));
+										theVariableData.lowerBound = parseFloat($('#lowerBound').submit()[0].value.replace(/,/g, ''));
                                         
                                         if (isNaN(parseInt(theVariableData.nominalValue))
                                                 || isNaN(parseInt(theVariableData.lowerBound))
@@ -19283,9 +19283,9 @@
                                     +"</select>\</form>", 
 							callback: function(result){
 									if(result){
-										theVariableData.nominalValue = $('#nominalValue').submit()[0].value;
+										theVariableData.nominalValue = parseFloat($('#nominalValue').submit()[0].value.replace(/,/g, ''));
 										theVariableData.operator = $('#operator').submit()[0].value;
-                                                                                
+                                                                                    
                                         if(theVariableData.operator != "<" 
                                            && theVariableData.operator != "<=" 
                                            && theVariableData.operator != "==" 
-- 
GitLab