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:
parent
23771da78b
commit
97ddd0982b
@ -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.
|
||||||
|
- bugfix: 98_todoist: title by params
|
||||||
- feature: 72_FRITZBOX: IP/URL um reinen DNS (ohne Domain) erweitert
|
- feature: 72_FRITZBOX: IP/URL um reinen DNS (ohne Domain) erweitert
|
||||||
- bugfix: 93_DbRep: fix Perl Warnings
|
- bugfix: 93_DbRep: fix Perl Warnings
|
||||||
- bugfix: 72_FRITZBOX: Pruefung Attr FritzBoxIP um URL erweitert
|
- bugfix: 72_FRITZBOX: Pruefung Attr FritzBoxIP um URL erweitert
|
||||||
|
@ -17,7 +17,7 @@ eval "use Date::Parse;1" or $missingModule .= "Date::Parse ";
|
|||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Global variables
|
# Global variables
|
||||||
my $version = "1.3.15";
|
my $version = "1.3.17";
|
||||||
my $apiUrl = "https://api.todoist.com/sync/v9/";
|
my $apiUrl = "https://api.todoist.com/sync/v9/";
|
||||||
|
|
||||||
my $srandUsed;
|
my $srandUsed;
|
||||||
@ -399,7 +399,10 @@ sub todoist_UpdateTask($$$) {
|
|||||||
## use task content
|
## use task content
|
||||||
elsif (@temp && $temp[0] =~ /title/i) {
|
elsif (@temp && $temp[0] =~ /title/i) {
|
||||||
$title = encode_utf8($temp[1]);
|
$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"});
|
||||||
$title = $h->{"Title"} if ($h->{"Title"});
|
$title = $h->{"Title"} if ($h->{"Title"});
|
||||||
$taskId = $hash->{helper}{"TITLES"}{$title} if ($hash->{helper}{"TITLES"});
|
$taskId = $hash->{helper}{"TITLES"}{$title} if ($hash->{helper}{"TITLES"});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user