*** biblio.module 2009-05-11 16:41:20.000000000 +0100 --- biblio.module 2009-05-11 15:35:45.000000000 +0100 *************** *** 1378,1391 **** } break; default: ! if ($form_state['storage'] == $form_state['values']['biblio_type'] || (!empty($form['#node']->biblio_type) && $form['#node']->biblio_type == $form_state['values']['biblio_type'])) { ! $form_state['storage'] = ""; $form_state['rebuild'] = FALSE; } else { $form_state['storage']['doi'] = TRUE; $form_state['storage']['paste'] = TRUE; ! $form_state['storage'] = $form_state['values']['biblio_type']; $form_state['rebuild'] = TRUE; return; } --- 1378,1393 ---- } break; default: ! if ($form_state['storage']['biblio_type'] == $form_state['values']['biblio_type'] || (!empty($form['#node']->biblio_type) && $form['#node']->biblio_type == $form_state['values']['biblio_type'])) { ! unset($form_state['storage']['biblio_type']); ! unset($form_state['storage']['doi']); ! unset($form_state['storage']['paste']); $form_state['rebuild'] = FALSE; } else { $form_state['storage']['doi'] = TRUE; $form_state['storage']['paste'] = TRUE; ! $form_state['storage']['biblio_type'] = $form_state['values']['biblio_type']; $form_state['rebuild'] = TRUE; return; }