mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 05:01:57 +00:00
HMinfo:update template delete
git-svn-id: https://svn.fhem.de/fhem/trunk@15721 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5cbd0a8bb3
commit
beea8441b1
@ -2232,7 +2232,7 @@ sub HMinfo_bpAbort($) {#bp timeout ############################################
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub HMinfo_templateChk_Get ($){ ###############################################
|
sub HMinfo_templateChk_Get($){ ################################################
|
||||||
my ($param) = shift;
|
my ($param) = shift;
|
||||||
my ($id,$opt,$filter,@a) = split ",",$param;
|
my ($id,$opt,$filter,@a) = split ",",$param;
|
||||||
$opt = "" if(!defined $opt);
|
$opt = "" if(!defined $opt);
|
||||||
@ -2264,6 +2264,7 @@ sub HMinfo_templateDef(@){#####################################################
|
|||||||
return "insufficient parameter, no param" if(!defined $param);
|
return "insufficient parameter, no param" if(!defined $param);
|
||||||
$tmplDefChange = 1;# signal we have a change!
|
$tmplDefChange = 1;# signal we have a change!
|
||||||
if ($param eq "del"){
|
if ($param eq "del"){
|
||||||
|
return "template in use, cannot be deleted" if(HMinfo_templateUsg("","",$name));
|
||||||
delete $HMConfig::culHmTpl{$name};
|
delete $HMConfig::culHmTpl{$name};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user