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

Chris Gillis’s picture

A 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.

joekrukosky’s picture

I 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,
);
}

duellj’s picture

Status: Active » Fixed

Fixed in CVS, Thanks Chris!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • duellj committed 470ad5c on 7.x-1.x, 7.x-2.x
    #1011312 by Chris Gillis: Removes notices by setting option defaults...