-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Php8.2 fixes in report addToDeveloperTab
function
#25800
Conversation
(Standard links)
|
Hmm will I be able to read the style parser output once they have all finished? Cos I'm confused right now |
CRM/Report/Form.php
Outdated
@@ -1534,8 +1537,8 @@ public function addToDeveloperTab($sql) { | |||
foreach (['FROM', 'WHERE', 'GROUP BY', 'ORDER BY', 'LIMIT', ';'] as $term) { | |||
$sql = str_replace($term, '<br><br>' . $term, ($sql ?? '')); | |||
} | |||
$this->sqlFormattedArray[] = $sql; | |||
$this->assign('sql', implode(';<br><br><br><br>', $this->sqlFormattedArray)); | |||
$sqlFormattedArray = $sql; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right. $sql is a string - it should be added to the array not replacing the array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@demeritcowboy yep - you are right - I wonder if that is what the tests are trying to tell me or not
609c295
to
47ef1ea
Compare
The test seems to start crashing around here. I don't know if it's related - it doesn't give a stacktrace.
|
jenkins retest this please |
47ef1ea
to
072f1e9
Compare
Overview
Php8.2 fixes in report
addToDeveloperTab
functionBefore
api_v3_ReportTemplateTest::testReportTemplateGetRowsAllReports with data set #25 ('case/demographics')
Failure in api call for report_template getrows: Creation of dynamic property CRM_Report_Form_Case_Demographics::$sqlFormattedArray is deprecated
After
local variable used
Technical Details
Minor NFC tidy ups
Comments