#5924 closed enhancement (fixed)
Minor invitation template adjustment
Reported by: | dcavins | Owned by: | dcavins |
---|---|---|---|
Milestone: | 2.3 | Priority: | low |
Severity: | minor | Version: | 2.1 |
Component: | Templates | Keywords: | has-patch needs-testing dev-feedback |
Cc: |
Description
Moves the nonce and submit button out of invites-loop.php
(that is the piece that is refreshed if using bp-legacy) to the wrapper file send-invites.php
.
Attachments (1)
Change History (11)
#1
follow-up:
↓ 2
@
10 years ago
- Keywords needs-testing added
- Milestone changed from Awaiting Review to 2.2
#2
in reply to:
↑ 1
@
10 years ago
Replying to DJPaul:
If someone has modified one template file in their theme, they could end up with two submit button. I am inclined to think we should leave this alone unless @dcavins you have a good reason as to why we should make the change (I acknowledge it's what the template ought to have been like originally).
Yes, there's the possibility of users having modified one or the other template parts and getting no submit buttons or two. Happily, that problem would be somewhat obvious at least.
I have no good reason beyond too much is happening in the AJAX request and recreating the submit button/nonce could cause heartache if a user is trying to bind javascript to those DOM objects. That said, it would be nice to fix but isn't currently breaking anything.
#5
@
10 years ago
I lean toward going with the fix suggested by dcavins. It's going to be an extremely small number of BP installations that have overridden one but not both of these templates.
#7
@
10 years ago
@dcavins if this patch still applies, I think consensus is that you can go ahead and commit it for 2.3 if you have time?
If someone has modified one template file in their theme, they could end up with two submit button. I am inclined to think we should leave this alone unless @dcavins you have a good reason as to why we should make the change (I acknowledge it's what the template ought to have been like originally).