2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

98_todoist: UTF8 in project title

git-svn-id: https://svn.fhem.de/fhem/trunk@21386 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
marvin78 2020-03-09 07:23:40 +00:00
parent 2046c51672
commit b20a3eaa33
2 changed files with 4 additions and 3 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: UTF in project title for Unicode Icons and Umlauts
- bugfix: 36_Vallox: Fixed MultiReading Issue
- feature: 70_BRAVIA: add requestReboot (thx schnakker)
- change: 57_SSCal: commandref reviewed

View File

@ -17,7 +17,7 @@ eval "use Date::Parse;1" or $missingModule .= "Date::Parse ";
#######################
# Global variables
my $version = "1.3.5";
my $version = "1.3.6";
my $srandUsed;
@ -984,7 +984,7 @@ sub todoist_GetTasksCallback($$$){
# set some internals (project data)
if ($project) {
$hash->{PROJECT_NAME}=$project->{name};
$hash->{PROJECT_NAME}=encode_utf8($project->{name});
$hash->{PROJECT_COLOR}=$project->{color};
$hash->{PROJECT_ORDER}=$project->{child_order};
if ($project->{user_id}) {
@ -2197,7 +2197,7 @@ sub todoist_Html(;$$$) {
my $dueDate = defined($hash->{helper}{DUE_DATE}{$_})?$hash->{helper}{DUE_DATE}{$_}:"";
my $responsibleUid = defined($hash->{helper}{RESPONSIBLE_UID}{$_})?$hash->{helper}{RESPONSIBLE_UID}{$_}:"";
$responsibleUid = $hash->{helper}{USER}{NAME}{$responsibleUid} if ($responsibleUid ne "");
$responsibleUid = $hash->{helper}{USER}{NAME}{$responsibleUid} if ($responsibleUid ne "" && defined($hash->{helper}{USER}{NAME}{$responsibleUid}));
my $dueDateClass = $dueDate ne ""?" todoist_dueDate":"";
my $responsibleUidClass = $responsibleUid ne ""?" todoist_responsibleUid":"";