Skip to content

Instantly share code, notes, and snippets.

@joebordes
Created July 7, 2015 20:43
Show Gist options
  • Save joebordes/d793efdb9ceb5be3505f to your computer and use it in GitHub Desktop.
Save joebordes/d793efdb9ceb5be3505f to your computer and use it in GitHub Desktop.
coreBOS issue 56 patch
diff --git a/modules/Reports/ReportRun.php b/modules/Reports/ReportRun.php
index ecea02e..a0c4220 100755
--- a/modules/Reports/ReportRun.php
+++ b/modules/Reports/ReportRun.php
@@ -845,7 +845,11 @@ class ReportRun extends CRMEntity {
$tableColumnSql = "CAST((CONCAT(due_date,' ',time_end)) AS DATETIME)";
}
} else {
- $tableColumnSql = $selectedfields[0].".".$selectedfields[1];
+ if ($moduleName==$this->primarymodule) {
+ $tableColumnSql = $selectedfields[0].".".$selectedfields[1];
+ } else {
+ $tableColumnSql = $selectedfields[0].$moduleName.".".$selectedfields[1];
+ }
}
$startDateTime = "'$startDateTime'";
$endDateTime = "'$endDateTime'";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment