The Cancel button in the Taxonomy Block form does still submit your changes, while it shouldn't.
First of all, I'm very new to PHP and Drupal. I tried to fix this issue myself since it looked easy, but I think I'm too new to fully understand why fix didn't work.
--- taxonomy_block.module.old 2007-06-01 18:10:12.000000000 +0200
+++ taxonomy_block.module 2007-08-05 21:21:35.000000000 +0200
@@ -170,7 +170,8 @@
'#value' => t('Submit'),
);
$form[] = array(
- '#type' => 'submit',
+ '#type' => 'submit',
+ '#submit' => FALSE,
'#value' => t('Cancel'),
);
Comments
Comment #1
yogitha commented$form['cancel'] = array(
'#type' => 'button',
'#value' => t('Cancel'),
'#attributes' => array('onClick' => "form.action='javascript:history.back(-1);'"),
);
Comment #2
drupalnesia commentedWe're now working on 6.x version, please do upgrade. Thanks.