From a1adfb07ba480458b5f8ee6fa88c6a00a022fba3 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Tue, 22 Jan 2013 19:16:46 +0000 Subject: [PATCH] Fixing eventMap bug: on:An causes havon in the FHEMWEB frontend git-svn-id: https://svn.fhem.de/fhem/trunk@2553 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 5d0fb1610..b1527034d 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -1677,8 +1677,12 @@ getAllSets($) my $em = AttrVal($d, "eventMap", undef); if($em) { + # Delete the first word of the translation (.*:), else it will be + # interpreted as the single possible value for a dropdown + # Why is the .*= deleted? $em = join(" ", grep { !/ / } - map { $_ =~ s/.*=//s; $_ } + map { $_ =~ s/.*=//s; + $_ =~ s/.*://s; $_ } EventMapAsList($em)); $a2 = "$em $a2"; }