mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 11:26:03 +00:00
structure: fixing delstruct/addstruct for save
git-svn-id: https://svn.fhem.de/fhem/trunk@4690 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
127fa91456
commit
5425c17899
@ -284,6 +284,7 @@ CommandAddStruct($)
|
||||
foreach my $d (devspec2array($a[0])) {
|
||||
$hash->{CONTENT}{$d} = 1;
|
||||
}
|
||||
$hash->{DEF} = $hash->{ATTR} . " " . join(" ",sort keys %{$hash->{CONTENT}});
|
||||
|
||||
@a = ( "set", $hash->{NAME}, $hash->{ATTR}, $hash->{NAME} );
|
||||
structure_Attr(@a);
|
||||
@ -310,6 +311,7 @@ CommandDelStruct($)
|
||||
foreach my $d (devspec2array($a[0])) {
|
||||
delete($hash->{CONTENT}{$d});
|
||||
}
|
||||
$hash->{DEF} = $hash->{ATTR} . " " . join(" ",sort keys %{$hash->{CONTENT}});
|
||||
|
||||
@a = ( "del", $hash->{NAME}, $hash->{ATTR} );
|
||||
structure_Attr(@a);
|
||||
|
Loading…
x
Reference in New Issue
Block a user