Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.12
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2009 at 20:47 UTC
Updated:
24 Mar 2011 at 09:07 UTC
It seems the "Cancel" button is behaving like a normal "Submit" button on the form after I select the "E-Mail" link. When I hit cancel it tries to validate the fields and I get validation errors.
I noticed this on line 106 of print_mail.inc:
<?php
$form['btn_cancel'] = array(
'#name' => 'cancel',
'#type' => 'submit',
'#value' => t('Cancel'),
);
?>
Comments
Comment #1
jcnventuraHi,
Thanks for reporting this... The code is it was used to work fine in the first Drupal 6 releases, but it stopped working for some reason now.. Anyway, I have just ported the code that handled this case in the Drupal 5 module to the Drupal 6 version. This is now in the latest dev.
João
Comment #3
anrikun commentedThis bug is still present in 6.x-6.9.
Comment #4
anrikun commentedSorry I meant 6.x-1.12!
By the way, the issue occurs when required fields are left empty.
Other validations like e-mail address validation are not carried out, as expected.
Comment #5
anrikun commentedComment #6
jcnventuraThis newer problem is not exactly the same as in 2009.. Anyway it was fixed in #703296: Cancel shouldn't required field input.
Comment #7
anrikun commentedGreat! Looking forward to next official release then.