Closed (outdated)
Project:
Multiple Email Addresses
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 May 2012 at 06:16 UTC
Updated:
5 Jun 2016 at 15:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kentr commentedThough, I also see that it might add some overhead. Looks like a call to
user_load()and / or a query to{multiple_email}may be required inmultiple_email_make_primary().Let me know... I may be able to provide a patch, but I won't put effort into it unless you're on board with the idea.
Comment #2
kentr commentedJust noticed that this would all work via
HOOK_user()if the current account info were passed intouser_save().So, I'd call this a bug...
How about modifying
multiple_email_primary_form_submit()andmultiple_email_make_primary()to pass the value for$account?As far as I can tell
multiple_email_make_primary()is only called in that one place, so this change has zero chance of side effects within multiple_email itself.Comment #3
shawn dearmond commentedI like it.
Can we get it into 7.x first? The patch should be almost identical.
Comment #4
kentr commentedSure.
Though, I don't use D7, so I can't roll a patch or test it.
Comment #5
Taxoman commentedComment #6
kentr commentedWhat's the point of changing it to a feature request?
Technically, it's an oversight in the use of the Drupal API. It's not a missing feature.
Comment #7
Georgique commentedAttaching ported patch
Comment #8
drummI actually think 7.x looks okay. It does use user_load() properly. Calls to user_load() are cached, so it isn't a problem to over-call it. I think the D6 version should follow D7's lead and not introduce a new parameter.
Comment #9
drummD6 is no longer maintained.