Giter Club home page Giter Club logo

Comments (6)

joebordes avatar joebordes commented on June 7, 2024

Try this patch and let me know how it goes:

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'";

Please try all you other reports that have filters on the dates, this change will affect the way they are generated. Hopefully for the better.

https://gist.github.com/joebordes/d793efdb9ceb5be3505f

from corebos.

micooro avatar micooro commented on June 7, 2024

Thank you very much Joe,
your patch, after some problems, worked very good.
Your help was precious

from corebos.

joebordes avatar joebordes commented on June 7, 2024

You welcome, I'm glad it worked. I would need you to share what problems you had and what you finally did so I can add it to coreBOS if possible.

Thanks

from corebos.

micooro avatar micooro commented on June 7, 2024

Ofcourse, what can i do to share this?

Da: Joe Bordes [mailto:[email protected]]
Inviato: giovedì 9 luglio 2015 10:25
A: tsolucio/corebos
Cc: micooro
Oggetto: Re: [corebos] Report - Filter date on related module (#56)

You welcome, I'm glad it worked. I would need you to share what problems you had and what you finally did so I can add it to coreBOS if possible.
Thanks

Reply to this email directly or view it on GitHub.

from corebos.

joebordes avatar joebordes commented on June 7, 2024

Well, basically tell me what you ended up modifying to get it working. If it was exactly the code changes I sent you or you had to change something else. The main idea is to add this fix to coreBOS so everybody using it get this problem solved.

Thanks

from corebos.

joebordes avatar joebordes commented on June 7, 2024

Any follow up on this please?

from corebos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.