Closed (fixed)
Project:
Bibliography Module
Version:
6.x-1.9
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2009 at 13:23 UTC
Updated:
2 Jan 2010 at 01:30 UTC
Since upgrading from Biblio-6.x-1.7 to Biblio-6.x-1.8 (and still in Biblio 6.x-1.9) fields are not displayed after selecting a publication type.
When I create a new biblio entry and select a publication type the script is working for some time. However, when it has finished no fields are shown. I have still the same form with only "Paste", "DOI lookup" and "Publication Type" shown.
I guess that their might be an error in the conditions in line 1107 to 1110 of the 1.9 biblio.module.
Comments
Comment #1
rjerome commentedDo you have any caching turned on?
The only other thing I can think of is some other module is resetting the $form_state['storage'] array. If I recall correctly I ran into this with the ctools module.
Comment #2
p0732658 commentedI'm having the same problem. It appeared in version 6.x-1.8 and is still there in the latest dev version. The probleme is there when I try to create a new biblio item or to edit one that already exist. I tried to desactived all my modules but it didn't help. I even tried installing biblio in an localhost setup whit no other modules activated, but that din't help either.
Denis
Comment #3
rjerome commentedStrange, I haven't seen this on any of the machines I test on. What version of Drupal and PHP are you guys using?
Comment #4
p0732658 commentedPHP 5.2
Drupal 6.14
Comment #5
rjerome commentedHmmm, this is going to require a little debugging on your part 'cause I still can't reproduce it.
One thing to try first would be to add a "default:" case to the switch in the validate function, so could you add a line after line 1554 in the biblio.module file, like this and see if that makes any difference...
Comment #6
p0732658 commentedIn my case, the problem seem to be cause by the Local module. I've came to this conclusion after desactivating/activating my modules. With Locale desactivated, Biblio works fine, but it I activate this module the problem reappers. Maybe meneteqel should try to desactivate this module on his installation...
Comment #7
rjerome commentedAhhh, I know what the problem is now! At the beginning of the biblio_form_validate function there are some lines like this...
that should be changed to this...
Comment #8
p0732658 commentedYep, that did the trick for me! Thank you very much!
Comment #9
lagupe commentedI tried the suggested changes but it didn't help me. I'm still having the same problem.
I've tried as Administrator and as standard user. Running Drupal 6.15 and PHP 5.2.9
Comment #10
rjerome commentedCould you try the latest -dev version (http://ftp.drupal.org/files/projects/biblio-6.x-1.x-dev.tar.gz) and see if it works.
Comment #11
meneteqel commentedThe change to a translatable string solveld the problem for me, too.
Thank you very much!
Comment #12
rjerome commentedHmmm, looks like I'm going to have to make another release pretty soon since this is a rather nasty bug :-(
Comment #13
rjerome commentedI'm going to call this fixed with this commit... http://drupal.org/cvs?commit=303866