From 5dbe307f6ff78345f09738d8627c44b0762c7812 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 14 Dec 2021 11:51:22 +0000 Subject: [PATCH] fhemweb.js: avoid error message for selects (Forum #124771) git-svn-id: https://svn.fhem.de/fhem/trunk@25343 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index 13c8ae6f4..a72656f41 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -1582,9 +1582,9 @@ FW_createSelect(elName, devName, vArr, currVal, set, params, cmd) $(newEl).attr('name', elName); if(cmd) $(newEl).change(function(arg) { cmd($(newEl).val()) }); - newEl.setValueFn = function(arg) { + newEl.setValueFn = function(arg) { if(!vHash[arg] && typeof(arg) != "undefined") - arg = arg.replaceAll(" ","."); // Forum #124505 + arg = (arg+"").replaceAll(" ","."); // Forum #124505 if(vHash[arg]) $(newEl).val(arg); };