Merge branch 'hotfix/4.7.2'

This commit is contained in:
yuri
2017-06-06 14:01:53 +03:00
2 changed files with 3 additions and 3 deletions
+2
View File
@@ -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'];
+1 -3
View File
@@ -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')) {