2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

fhemweb.js: select parameters: userattr overrules builtins (Forum #29972)

git-svn-id: https://svn.fhem.de/fhem/trunk@23340 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-12-13 11:18:04 +00:00
parent 0a7cf9ec18
commit 5cc2129c4a

View File

@ -1256,14 +1256,14 @@ FW_detailSelect(selEl, mayMissing)
if(selVal != null && selVal != undefined) {
for(var i1=0; i1<listArr.length; i1++) {
argAndPar = listArr[i1].split(":");
if(selVal.match(new RegExp(argAndPar[0]))) {
fnd = true;
if(argAndPar.length > 2) {
var re = shift(argAndPar);
argAndPar = [re, argAndPar.join(":")];
var aap = listArr[i1].split(":");
if(selVal.match(new RegExp(aap[0]))) {
if(aap.length > 2) {
var re = shift(aap);
aap = [re, aap.join(":")];
}
break;
argAndPar = aap;
fnd = true;
}
}
}