Hi!
I get this error (using views for project module):
notice: Undefined variable: get_count_optimized in /Library/WebServer/Documents/pm/sites/all/modules/views/plugins/views_plugin_query_default.inc on line 947.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | views-652812.patch | 1.54 KB | dagmar |
| #2 | views-652812-2.patch | 1.59 KB | xslim |
| #1 | views-652812.patch | 732 bytes | xslim |
Comments
Comment #1
xslim commentedSimple patch
Comment #2
xslim commentedOk.
and I have same thing for undefined property $has_aggregate
Comment #3
merlinofchaos commentedUse empty() rather than isset(). While it will make no functional difference, isset() will return TRUE if $get_count_optimized = FALSE and obviously if at some point we want to add in code that flips the switch back, it would be awkward.
Also I think your spacing isn't conforming to coding standards.
Comment #4
dagmarI don't use project module, so I didn't test this. I have only rerolled the patch according to #3
Comment #5
xslim commentedI think better to use not
if (!empty($get_count_optimized)) {but
if (!empty($get_count_optimized) && $get_count_optimized) {that will check also for TRUE
?
Comment #6
dagmarFrom: http://drupal.org/node/34341
If you want to check if $get_count_optimized is numeric, you shoud use is_numeric().
Comment #7
xslim commentedoh, ok )
Comment #8
dawehnerhttp://drupal.org/node/664410 does now work with the patch.
Comment #9
merlinofchaos commentedCommited to 6.x-3.x -- does not apply to 7.x, needs to be ported.
Comment #10
dawehnerThats already part of the group-by patch
Comment #11
dawehnerremove tag