For the Print Mail module, when I’m in the page to send content to a friend, the form requires me to input information in the “Send to,” “Message,” and “Your Email (if anonymous)” fields in order to “Cancel.” Meaning, if I didn’t enter any information in those fields and decide to cancel, it will display a required message. However, when I do enter information in those fields and decide to cancel, it cancels properly—sending me back to the node page that I wanted to send. This shouldn’t happen because users often change their minds without entering any information. If those fields are blank and a user clicks the cancel button, he should be sent to the original node without being notified that fields are required. Moreover, I would like to see a “Send Myself a Copy” option. Thanks for taking the time to read this issue.

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Are you really using version 6.x-1.10? This problem was fixed in 6.x-1.4 !?

In case you're running an old version, please upgrade the module. If not, then something is wrong with your setup, as I've just tested this and it works fine without requiring any data in those fields..

João

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further info in more than two weeks. Closing the issue.

João

lebachai’s picture

Sorry, but I'm able to duplicate this issue in print 1.12 (the currently recommended version). Any clues about what the issue may be? If it's on my end, that's fine--I just want to be able to fix it.

gagarine’s picture

Version: 6.x-1.10 » 6.x-1.12
Status: Closed (fixed) » Active

I can confirm this bug.

gagarine’s picture

Status: Active » Needs review
StatusFileSize
new1.24 KB
gagarine’s picture

StatusFileSize
new1.24 KB

The file don't work don't know why...

gagarine’s picture

Assigned: Unassigned » gagarine
Status: Needs review » Needs work

I found a mistake.. patch coming...

gagarine’s picture

Assigned: Unassigned » gagarine
StatusFileSize
new1.72 KB

This one works..

EDIT: sorry for double posting... drupal.org bug

gagarine’s picture

Assigned: gagarine » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.72 KB

This one works

dstol’s picture

Assigned: gagarine » Unassigned
Status: Needs review » Reviewed & tested by the community

Patch works as advertised.

AlexisWilke’s picture

StatusFileSize
new8.21 KB

I confirm that the patch works.

However, it defines a 2nd instance that overwrites the first instance of the Cancel button.

Plus, the submit function should be unindented to be correct.

The attached proposes the same patch with those two fixes.

Thank you.
Alexis Wilke

P.S. note that it looks like a lot of code was changed, this is because of the indentation fix.

rv0’s picture

Status: Reviewed & tested by the community » Needs review

patch in #11 does the job for me.

thanks!

nclavaud’s picture

Status: Needs review » Reviewed & tested by the community

facing the same issue.
using patch #11, cancelation (and other actions) worked as expected.
thx!

jcnventura’s picture

Status: Reviewed & tested by the community » Fixed

Actually, only two lines in that patch are needed.

This used to work before quite nicely until I accept the patch in #707534: Email to a friend form needs required fields, and I forgot to adapt the cancel option to ignore the errors when validating.

I've committed a fix to git.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

escoles’s picture

Just to be clear: We have to install dev to get this patch, right?

Shouldn't the status be 'reviewed & tested by the community', not 'fixed'?

EDIT: Note that upgrading to the dev version may expose the 'access denied' bug described here:
http://drupal.org/node/605264

So IMO the better part of valor is to either sort out and apply the appropriate patch or not try to fix this problem.

dstol’s picture

Fixed is the appropriate status as the code has been committed.

A release hasn't been created since the issue was fixed so you'll need to download the nightly dev.