Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
jcnventura CreditAttribution: jcnventura commentedHi,
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 CreditAttribution: anrikun commentedThis bug is still present in 6.x-6.9.
Comment #4
anrikun CreditAttribution: 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 CreditAttribution: anrikun commentedComment #6
jcnventura CreditAttribution: jcnventura commentedThis 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 CreditAttribution: anrikun commentedGreat! Looking forward to next official release then.