-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Qual: Undefined variable $errormessage in /var/www/html/core/customreports.php on line 951 #36392
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
base: 20.0
Are you sure you want to change the base?
Conversation
|
| if (!empty($object->table_element)) { | ||
| $search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_'); | ||
| } else { | ||
| $search_array_options = 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.
idea copied from
htdocs/core/lib/company.lib.php: $search_array_options = array();
| $features = $object->element; | ||
| } else { | ||
| $features = ''; | ||
| } |
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.
unsure if the variable should be empty
| if (isset($filenamekey) && isset($fileurlkey)) { | ||
| $px1->draw($filenamekey, $fileurlkey); | ||
| } | ||
|
|
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.
Unsure if it is better to assign these $filenamekey and $fileurlkey to an empty string and then draw that
|
@JonBendtsen object "element" and " table_element" can not be empty ! if empty... buuuugs in class of element ! |
Okay, then I don't know how to fix it. I get those 4 PHP warning lines when switching to |
|
@JonBendtsen and with this fixx: #36393 ? |
|
eldy's fix here 112028a works fine so I will close this PR |
|
damn, tested in the wrong branch |
|
first commit fixes error message like this |
|
if I only use @eldy's fix in 112028a I still get the errors I post in this PR, but with the changes here and @eldy's changes in 112028a both in v20 with commit I do not get any errors. @eldy do you want your fix in v22 backported into v20 in this PR?, if not you can just go ahead and merge this |
6bf7195 to
ef70a7a
Compare
|
customreports feature seams still in development in v20. |
|
that one is closed @hregis ? |
even with fresh pulled v20, and your changes backported from 112028a I still get these errors when selecting |
ef70a7a to
6e111fe
Compare
|
@eldy after testing with the changes here in this PR I get no errors in |
|
@eldy if you want I can easily add you changes backported to v20 |
You can. Not required as it is is not supported feature in v20. But you can. |
Qual Undefined variables in /var/www/html/core/customreports.php on various lines
This PR is a fix of an error message discovered during my exploring of a fix of
BI - Custom Reports "Warning: Undefined property: CLeadStatus::$fieldsin bug nr. 35096