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
Comment #1
danepowell commentedTry 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.
Comment #2
mkalbere commentedYes 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']) {
Comment #3
danepowell commentedThanks, 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.