2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 19:04:20 +00:00

98_todoist.pm: bugfix for titles as params

git-svn-id: https://svn.fhem.de/fhem/trunk@27352 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
marvin78 2023-03-24 07:54:41 +00:00
parent 23771da78b
commit 97ddd0982b
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# 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.
- bugfix: 98_todoist: title by params
- feature: 72_FRITZBOX: IP/URL um reinen DNS (ohne Domain) erweitert
- bugfix: 93_DbRep: fix Perl Warnings
- bugfix: 72_FRITZBOX: Pruefung Attr FritzBoxIP um URL erweitert

View File

@ -17,7 +17,7 @@ eval "use Date::Parse;1" or $missingModule .= "Date::Parse ";
#######################
# Global variables
my $version = "1.3.15";
my $version = "1.3.17";
my $apiUrl = "https://api.todoist.com/sync/v9/";
my $srandUsed;
@ -399,7 +399,10 @@ sub todoist_UpdateTask($$$) {
## use task content
elsif (@temp && $temp[0] =~ /title/i) {
$title = encode_utf8($temp[1]);
$title = $h->{"title"} if ($h->{"title"});
$taskId = $hash->{helper}{"TITLES"}{$title} if ($hash->{helper}{"TITLES"});
}
elsif (defined($h->{"title"}) || defined($h->{"TITLE"}) || defined($h->{"Title"})) {
$title = $h->{"title"} if ($h->{"title"});
$title = $h->{"TITLE"} if ($h->{"TITLE"});
$title = $h->{"Title"} if ($h->{"Title"});
$taskId = $hash->{helper}{"TITLES"}{$title} if ($hash->{helper}{"TITLES"});