Skip to content
Snippets Groups Projects
Commit e72534c4 authored by Manuel's avatar Manuel
Browse files

Fix #577 preg_replace syntax for related records count

parent 630c4b14
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