When I enable the Storm Ticket module I get this error on some pages with Views: "warning: Illegal offset type in isset or empty in /opt/prototype/includes/common.inc on line 916."
I am only experiencing this on certain Views on Panels pages, but it could be more or less widespread.
After poking around I found this is because of these sections at line 206 in stormticket.views.inc:
$data['stormtask']['billable'] = array(
'title' => t('Task Billable'),
'help' => 'Storm Task Billable',
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
);
$data['stormtask']['billed'] = array(
'title' => t('Tasl Billed'),
'help' => 'Storm Task Billed',
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
);
They should read 'stormticket' instead of 'stormtask'. Also, unrelated to the above error, there's a typo of "tasl" instead of "task".
The included patch has fixed this on my setup (Fedora 13, PHP 5.3.3, Drupal 6.19).
Comments
Comment #1
juliangb commentedGood spot.
I noticed also that the titles are wrong too - they should say ticket too. Updated patch attached.
Comment #2
mlove_drupal commentedDoh!
Comment #3
tchurch commentedYou can say that again. I should say this too. I missed it when I developed it. Well spotted both.
Comment #4
juliangb commentedCommitted. This will be in 1.35.