fix: allow null label colors in trello json importer
Signed-off-by: Mario Jäckle <github@jacksbox.de>
This commit is contained in:
committed by
backportbot-nextcloud[bot]
parent
e8ab1adb50
commit
363812fa4b
@@ -332,7 +332,7 @@ class TrelloJsonService extends ABoardImportService {
|
|||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function translateColor(string $color): string {
|
private function translateColor(?string $color): string {
|
||||||
switch ($color) {
|
switch ($color) {
|
||||||
case 'red':
|
case 'red':
|
||||||
return 'ff0000';
|
return 'ff0000';
|
||||||
|
|||||||
Reference in New Issue
Block a user