Closed (fixed)
Project:
Bibliography Module
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 Nov 2008 at 14:10 UTC
Updated:
3 Dec 2008 at 22:32 UTC
Hi,
if one selects biblio_contributors as invisible for a certain type, so that it is moved into the other_fields array, the author types are missing. That's because the function is called as
_biblio_contributor_widget($form['other_fields'],...
but in biblio_contributor_widget() the $tid is tried to fetch from the form by
$tid = (isset($node['biblio_type']))?$node['biblio_type']:$form['biblio_type']['#default_value'];
But $form['biblio_type'] is not available if we passed $form['other_fields'], as $form
The attached patch adds an optional $tid parameter and passes it when calling _biblio_contributor_widget with the subform. If $tid is passed, it is not calculated again.
cu,
Frank
| Comment | File | Size | Author |
|---|---|---|---|
| biblio_fix_contributor_widget.patch | 1.43 KB | Frank Steiner |
Comments
Comment #1
rjerome commentedcommitted to CVS.