Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Receiving this error four times:
Notice: Undefined index: row_class in views_plugin_style->get_row_class() (line 104 of /xxxx/sites/all/modules/views/plugins/views_plugin_style.inc).
To fix this, the file datatables.views.inc needs another line added to this big definition array:
'uses row class' => TRUE,
Sorry no patch. I'm just testing today.
Comments
Comment #1
Chris Gillis CreditAttribution: Chris Gillis commentedA related issue is the lack of variable-existence checking in the tpl.
Perhaps in the datatables-view.tpl.php, line 17 should have:
class="<?php print !empty($class)?implode(' ', $class):''; ?>"
Although this is more of a symptoms fix than a cure.
Comment #2
joekrukoskyI found I also had to add:
'row_class' => '',
To clarify, in views_plugin_style.inc function init(... should look like this:
function init(&$view, &$display, $options = NULL) {
$this->view = &$view;
$this->display = &$display;
// Overlay incoming options on top of defaults
$this->unpack_options($this->options, isset($options) ? $options : $display->handler->get_option('style_options'));
if ($this->uses_row_plugin() && $display->handler->get_option('row_plugin')) {
$this->row_plugin = $display->handler->get_plugin('row');
}
$this->options += array(
'grouping' => '',
'row_class' => '',
);
$this->definition += array(
'uses grouping' => TRUE,
'uses row class' => TRUE,
);
}
Comment #3
duellj CreditAttribution: duellj commentedFixed in CVS, Thanks Chris!