2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 19:36:02 +00:00

Remove the * from the state when setting dummy values in FHEMWEB

git-svn-id: https://svn.fhem.de/fhem/trunk@3343 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-06-27 14:19:47 +00:00
parent fcef06ad1e
commit b907ad0f95
2 changed files with 2 additions and 2 deletions

View File

@ -749,7 +749,7 @@ FW_makeSelect($$$$)
return if(!$list || $FW_hiddenroom{input});
my @al = sort map { s/:.*//;$_ } split(" ", $list);
my $selEl = $al[0];
my $selEl = (defined($al[0]) ? $al[0] : " ");
$selEl = $1 if($list =~ m/([^ ]*):slider,/); # promote a slider if available
$selEl = "room" if($list =~ m/room:/);

View File

@ -23,7 +23,7 @@ dummy_Set($@)
my $name = shift @a;
return "no set value specified" if(int(@a) < 1);
my $setList = AttrVal($name, "setList", "*");
my $setList = AttrVal($name, "setList", " ");
return "Unknown argument ?, choose one of $setList" if($a[0] eq "?");
my $v = join(" ", @a);