mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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
|
# Global variables
|
||||||
my $postmeversion = "2.0";
|
my $postmeversion = "2.01";
|
||||||
my $FW_encoding = "UTF-8";
|
my $FW_encoding = "UTF-8";
|
||||||
|
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
@ -525,8 +525,8 @@ sub PostMe_Modify($$@) {
|
|||||||
if( $fullitem ne $item );
|
if( $fullitem ne $item );
|
||||||
$new .= $item.' [';
|
$new .= $item.' [';
|
||||||
#-- no attributes present so far
|
#-- no attributes present so far
|
||||||
if( ($old !~ /.*\[.*\].*/) && ($val) ){
|
if( ($old !~ /.*\[.*\].*/) && ($val) ){
|
||||||
PostMe_cleanSpecial($hash,$listname,$item,$attr);
|
#PostMe_cleanSpecial($hash,$listname,$item,$attr);
|
||||||
PostMe_procSpecial($hash,$listname,$item,$attr,$val);
|
PostMe_procSpecial($hash,$listname,$item,$attr,$val);
|
||||||
$new .= $attr.'="'.$val.'"';
|
$new .= $attr.'="'.$val.'"';
|
||||||
#-- attributes present already
|
#-- attributes present already
|
||||||
@ -536,7 +536,7 @@ sub PostMe_Modify($$@) {
|
|||||||
#-- particular attribute not yet present
|
#-- particular attribute not yet present
|
||||||
if( index($old,$attr) < 0){
|
if( index($old,$attr) < 0){
|
||||||
if( $val ){
|
if( $val ){
|
||||||
PostMe_cleanSpecial($hash,$listname,$item,$attr);
|
#PostMe_cleanSpecial($hash,$listname,$item,$attr);
|
||||||
PostMe_procSpecial($hash,$listname,$item,$attr,$val);
|
PostMe_procSpecial($hash,$listname,$item,$attr,$val);
|
||||||
$new .= $old.' '.$attr.'="'.$val.'"'
|
$new .= $old.' '.$attr.'="'.$val.'"'
|
||||||
}
|
}
|
||||||
@ -558,7 +558,7 @@ sub PostMe_Modify($$@) {
|
|||||||
#-- remove, if no val is given
|
#-- remove, if no val is given
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$new .= ']'.$listsep;
|
$new .= ']'.$listsep;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user