From 7a18d88c5040d70b9e78d97ff1c1b0b5847b5ab8 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 6 Jun 2017 12:20:46 +0300 Subject: [PATCH 1/2] fix export 2 --- application/Espo/Core/Export/Xlsx.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/Espo/Core/Export/Xlsx.php b/application/Espo/Core/Export/Xlsx.php index abacda6eb5..a947efe010 100644 --- a/application/Espo/Core/Export/Xlsx.php +++ b/application/Espo/Core/Export/Xlsx.php @@ -137,6 +137,8 @@ class Xlsx extends \Espo\Core\Injectable foreach ($badCharList as $badChar) { $sheetName = str_replace($badCharList, ' ', $sheetName); } + $sheetName = str_replace('\'', '', $sheetName); + $sheet->setTitle($sheetName); $fieldList = $params['fieldList']; From f474137b9195fe2b426a00243ad38632f4671f15 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 6 Jun 2017 14:01:33 +0300 Subject: [PATCH 2/2] fix mention --- application/Espo/Hooks/Note/Mentions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/application/Espo/Hooks/Note/Mentions.php b/application/Espo/Hooks/Note/Mentions.php index dd7c130596..206ce2fd08 100644 --- a/application/Espo/Hooks/Note/Mentions.php +++ b/application/Espo/Hooks/Note/Mentions.php @@ -61,12 +61,10 @@ class Mentions extends \Espo\Core\Hooks\Base } } - preg_match_all('/(@\w+)/', $post, $matches); + preg_match_all('/(@[\w@.-]+)/', $post, $matches); $mentionCount = 0; - - if (is_array($matches) && !empty($matches[0]) && is_array($matches[0])) { $parent = null; if ($entity->get('parentId') && $entity->get('parentType')) {