2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

98_weekprofile: update reading profile_count after save profiles

git-svn-id: https://svn.fhem.de/fhem/trunk@13979 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Risiko 2017-04-12 21:26:35 +00:00
parent 757c9b6b49
commit 44ecb9380a
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it. # Do not insert empty lines here, update check depends on it.
- update: 98_weekprofile: update reading profile_count after save profiles
- feature: 98_weekprofile: new attribute widgetTranslations for translations - feature: 98_weekprofile: new attribute widgetTranslations for translations
- bugfix: 98_weekprofile: handle csrfToken - bugfix: 98_weekprofile: handle csrfToken
- bugfix: 02_HTTPSRV: strip parameters from filename - bugfix: 02_HTTPSRV: strip parameters from filename

View File

@ -669,7 +669,6 @@ sub weekprofile_Set($$@)
$prfNew->{TOPIC} = $topic; $prfNew->{TOPIC} = $topic;
push @{$hash->{PROFILES}}, $prfNew; push @{$hash->{PROFILES}}, $prfNew;
weekprofile_updateReadings($hash);
weekprofile_writeProfilesToFile($hash); weekprofile_writeProfilesToFile($hash);
return undef; return undef;
} }
@ -739,7 +738,6 @@ sub weekprofile_Set($$@)
push @{$hash->{PROFILES}}, $prfDest; push @{$hash->{PROFILES}}, $prfDest;
} }
weekprofile_writeProfilesToFile($hash); weekprofile_writeProfilesToFile($hash);
weekprofile_updateReadings($hash);
return undef; return undef;
} }
@ -774,7 +772,6 @@ sub weekprofile_Set($$@)
push @{$hash->{PROFILES}}, $prfDest; push @{$hash->{PROFILES}}, $prfDest;
} }
weekprofile_writeProfilesToFile($hash); weekprofile_writeProfilesToFile($hash);
weekprofile_updateReadings($hash);
return undef; return undef;
} }
@ -796,7 +793,6 @@ sub weekprofile_Set($$@)
splice(@{$hash->{PROFILES}},$idx, 1); splice(@{$hash->{PROFILES}},$idx, 1);
weekprofile_writeProfilesToFile($hash); weekprofile_writeProfilesToFile($hash);
weekprofile_updateReadings($hash);
return undef; return undef;
} }
@ -949,6 +945,7 @@ sub weekprofile_writeProfilesToFile(@)
} }
close $fh; close $fh;
DoTrigger($me,"PROFILES_SAVED",1); DoTrigger($me,"PROFILES_SAVED",1);
weekprofile_updateReadings($hash);
} }
############################################## ##############################################
sub weekprofile_readProfilesFromFile(@) sub weekprofile_readProfilesFromFile(@)