Active
Project:
Bibliography Module
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 May 2012 at 08:14 UTC
Updated:
15 May 2012 at 11:18 UTC
I tried all the methods: drupal_goto and form_state['redirect'] hook_form_alter
None of them work for biblio_import_form_submit
7.x-1.x-dev got to really strange 'Array' url
7.x-1.x-rc4 and 7.x-1.x-rc3 always go to the latest biblio node.
Comments
Comment #1
shenzhuxi commentedIn 7.x-1.x-dev
After biblio_save_node($node, $terms, $batch, $session_id, $save); in _biblio_bibtex_import (line 275 in biblio_bibtex.module)
the form redirect and drupal_goto all get problem.
Comment #2
shenzhuxi commentedI can use hook_batch_alter for batch process now, but if "Batch Process" was unchecked, I still can't find out what breaks the form submitting process.
function hook_batch_alter(&$batch) {
$destination = ($_GET['q']);
if ($batch['sets'][0]['file'] == './sites/ebi.ac.uk/modules/contrib/biblio/includes/biblio.import.export.inc') {
$batch['redirect'] = $_GET['q'];
}
}