Hello,
I created a new view with jsgantt style display, but when I try to configure the "style" I get an error.
While seraching, I found out the no "get_field_labels" handler exists.

function options_form(&$form, &$form_state) {
$optional = array('' => t(''));
$options = $this->display->handler->get_field_labels();
$optional += $options;

Did I miss something ?
using view 6.2.8

Comments

danepowell’s picture

Title: Undefined get_field_labels » Views version < 6.x-2.9: Undefined get_field_labels
Category: bug » support
Status: Active » Fixed

Try Views 6.x-2.9. I believe that function was added to that version, according to this issue: #651274: Inline fields list does not show relationships or field label. Unfortunately, it was never documented in the release history.

I'll add a note to the views_jsgantt project page.

mkalbere’s picture

Yes I found it yesterday, it works. Thanks !
But I is not enought to make it work I also had to modify views-view-views-jsgantt.tpl.php. Since I have no parent: the output of my view was broken and I got a "white screen".
Adding this condition correct the problem:
if (isset($view->result[$i]->$options['parentid']))
if ($view->result[$i]->$options['parentid'] == $row->$options['parentid']) {

danepowell’s picture

Thanks, I committed that fix. Please try the new 6.x-1.x-dev when it rolls in a few hours and let me know if it works for you.

Status: Fixed » Closed (fixed)

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