Skip to content

Commit 670e539

Browse files
committed
Fix import of cells that contain rich text
1 parent 8bbc60b commit 670e539

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ExcelMessageController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ public function actionImport($configFile, $excelDir, $extension = 'xlsx')
150150
$sheet = $excel->getSheetByName($category);
151151
$row = 2;
152152
while (($source = $sheet->getCellByColumnAndRow(0,$row)->getValue())!==null) {
153-
$translation = $sheet->getCellByColumnAndRow(1, $row)->getValue();
154-
if ($translation!==null && trim($translation)!=='') {
153+
$translation = (string)$sheet->getCellByColumnAndRow(1, $row)->getValue();
154+
if (trim($translation)!=='') {
155155
if (!isset($messages[$language])) {
156156
$messages[$language] = [];
157157
}

0 commit comments

Comments
 (0)