Skip to content
Snippets Groups Projects
Commit e1b2d1ff authored by vtigerosm's avatar vtigerosm
Browse files

Fix #577 preg_replace syntax for related records count

Fixes #474, #387, #367
parents 630c4b14 e72534c4
No related branches found
No related tags found
No related merge requests found
......@@ -507,7 +507,7 @@ class Vtiger_RelationListView_Model extends Vtiger_Base_Model {
$realtedModuleModel = $this->getRelatedModuleModel();
$relatedModuleName = $realtedModuleModel->getName();
$relationQuery = $this->getRelationQuery();
$relationQuery = preg_replace("[ \t\n\r]+", " ", $relationQuery);
$relationQuery = preg_replace("/[ \t\n\r]+/", " ", $relationQuery);
$position = stripos($relationQuery,' from ');
if ($position) {
$split = spliti(' FROM ', $relationQuery);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment