mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
95:PostMe.pm Bugfix beim modify Kommando
git-svn-id: https://svn.fhem.de/fhem/trunk@13017 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ed689c0f92
commit
8b2a5cb5be
@ -43,7 +43,7 @@ use Time::Local;
|
||||
|
||||
#########################
|
||||
# Global variables
|
||||
my $postmeversion = "2.0";
|
||||
my $postmeversion = "2.01";
|
||||
my $FW_encoding = "UTF-8";
|
||||
|
||||
#########################################################################################
|
||||
@ -525,8 +525,8 @@ sub PostMe_Modify($$@) {
|
||||
if( $fullitem ne $item );
|
||||
$new .= $item.' [';
|
||||
#-- no attributes present so far
|
||||
if( ($old !~ /.*\[.*\].*/) && ($val) ){
|
||||
PostMe_cleanSpecial($hash,$listname,$item,$attr);
|
||||
if( ($old !~ /.*\[.*\].*/) && ($val) ){
|
||||
#PostMe_cleanSpecial($hash,$listname,$item,$attr);
|
||||
PostMe_procSpecial($hash,$listname,$item,$attr,$val);
|
||||
$new .= $attr.'="'.$val.'"';
|
||||
#-- attributes present already
|
||||
@ -536,7 +536,7 @@ sub PostMe_Modify($$@) {
|
||||
#-- particular attribute not yet present
|
||||
if( index($old,$attr) < 0){
|
||||
if( $val ){
|
||||
PostMe_cleanSpecial($hash,$listname,$item,$attr);
|
||||
#PostMe_cleanSpecial($hash,$listname,$item,$attr);
|
||||
PostMe_procSpecial($hash,$listname,$item,$attr,$val);
|
||||
$new .= $old.' '.$attr.'="'.$val.'"'
|
||||
}
|
||||
@ -558,7 +558,7 @@ sub PostMe_Modify($$@) {
|
||||
#-- remove, if no val is given
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$new .= ']'.$listsep;
|
||||
|
Loading…
x
Reference in New Issue
Block a user