2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-24 09:09:19 +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:
martinp876 2017-12-29 19:30:11 +00:00
parent 5cbd0a8bb3
commit beea8441b1

View File

@ -2232,7 +2232,7 @@ sub HMinfo_bpAbort($) {#bp timeout ############################################
return;
}
sub HMinfo_templateChk_Get ($){ ###############################################
sub HMinfo_templateChk_Get($){ ################################################
my ($param) = shift;
my ($id,$opt,$filter,@a) = split ",",$param;
$opt = "" if(!defined $opt);
@ -2264,6 +2264,7 @@ sub HMinfo_templateDef(@){#####################################################
return "insufficient parameter, no param" if(!defined $param);
$tmplDefChange = 1;# signal we have a change!
if ($param eq "del"){
return "template in use, cannot be deleted" if(HMinfo_templateUsg("","",$name));
delete $HMConfig::culHmTpl{$name};
return;
}