Contact last touch point select SQL has a column (emails.date_sent_received) on a wrong table (notes) instead of emails. #555
Labels
Priority:Important
Issues & PRs that are important; broken functions; errors; there are workarounds
Severity: Moderate
Minor Impact
Type: Bug
Something isn't working
Issue
There is a fatal error reported in the log file from the 8.7 version. The error is not displayed on the UI but reported in the log file.
Error:
It looks the indexes are changed and so this might be breaking the query for subpanels in Contacts module.
Path:
Core\core\modules\Contacts\Statistics\ContactLastTouchPoint.php
$queries[4] & $queries[5]
There are indexes difference in this file in 8.6.2 and 8.7. The $queries list has different indexes 8.7 and 8.6.2 in ContactLastTouchPoint.php but the order of subpanels in subpaneldefs.php in two versions is not different.
Changing the indexes of $queries in ContactLastTouchPoint in 8.7 similar to 8.6.2 fixed the issue in my suite8.7 installation.
changed the above indexes as $queries[5] & $queries[6] in 8.7 in the same file.
I am not sure if this is the correct fix, or I am missing something.
Possible Fix
Reverting the indexes $queries array order $queries[4] & $queries[5] by $queries[5] & $queries[6] reectively.
in Core\core\modules\Contacts\Statistics\ContactLastTouchPoint.php
Steps to Reproduce the Issue
Context
No response
Version
8.7
What browser are you currently using?
Chrome
Browser Version
No response
Environment Information
MariaDB, PHP 8.2
Operating System and Version
Windows
The text was updated successfully, but these errors were encountered: