I have error message on site
Notice: Undefined index: views_bulk_operations in views_calc_table->get_calc_fields() (line 268 of Z:\home\erpal.local\www\profiles\erpal_starter\modules\contrib\views_calc\views_calc_table.inc).
Notice: Undefined index: views_bulk_operations in include() (line 26 of Z:\home\erpal.local\www\profiles\erpal_starter\modules\contrib\views_calc\views-calc-table.tpl.php).
After debuging I noticed that in the file views_calc_table.inc $options['columns'], $options['info'] and $fields arrays have different keys. The same issue in the file theme.inc.
Here is the $options['columns'] and $options['info'] arrays :

And here is the $fieldds array:

Keys views_bulk_operations and views_bulk_operations_1 are different! But I don't know how can it be...
After it we have different keys in $options['info'] and $fields arrays. And using string like
$options['info'][$field]
in looping fields causes error.
I saw using of function
$columns = $handler->sanitize_columns($options['columns'], $fields);
that merges array into $columns:
.
using $columns = $options['columns']; instead of $columns = $handler->sanitize_columns($options['columns'], $fields); solves the issue in the views_calc_table.inc. But in theme.inc issue still present...
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | views_calc.7.x.-1.0-dev.patch | 2.76 KB | a.milkovsky |
| 2013-01-02_1820_001.png | 26.77 KB | a.milkovsky | |
| 2013-01-02_1820.png | 25.39 KB | a.milkovsky | |
| 2013-01-02_1818.png | 55.84 KB | a.milkovsky |
Comments
Comment #1
a.milkovskyI added checks in views-calc-table.tpl.php.
This partially fixes the issue
Comment #2
a.milkovskyI ve fixed this issue.
If you ever notice this strange issue just switch to other layout type (I switched to table) and than back to views calc. It recreates indexes of all fields
Comment #3
skdrupal88Thank you @a.milkovsky so much for sharing your experience, it helped me!
Comment #4
a.milkovsky