summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-08-01 15:08:57 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-08-18 11:00:28 -0400
commit8e9c42dc0e0291bda72a4d87259ee5020e3634ef (patch)
treed45369526dd97a097b5265b56cb34fa8c91ac6d7
parent862e1bf16a977784a73d6b0e413712830de408e6 (diff)
RT# 75817 - fixed enable selection to send password reset and to allow you to set password in one step
-rw-r--r--FS/FS/cust_contact.pm2
-rw-r--r--httemplate/elements/contact.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/cust_contact.pm b/FS/FS/cust_contact.pm
index 6820ac4b4..118a9e000 100644
--- a/FS/FS/cust_contact.pm
+++ b/FS/FS/cust_contact.pm
@@ -106,7 +106,7 @@ and replace methods.
sub check {
my $self = shift;
- if ( $self->selfservice_access eq 'R' || $self->selfservice_access eq 'P') {
+ if ( $self->selfservice_access eq 'R' || $self->selfservice_access eq 'E' || $self->selfservice_access eq 'P') {
$self->selfservice_access('Y');
$self->_resend('Y');
}
diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html
index 850c2540d..7d1f16082 100644
--- a/httemplate/elements/contact.html
+++ b/httemplate/elements/contact.html
@@ -57,7 +57,7 @@
>
<OPTION VALUE="">Disabled
% if ( $value || $self_base_url ) {
- <OPTION VALUE="Y" <% $value eq 'Y' ? 'SELECTED' : '' %>>Enabled
+ <OPTION VALUE="E" <% $value eq 'Y' ? 'SELECTED' : '' %>>Enabled
% if ( $value eq 'Y' && $self_base_url ) {
<OPTION VALUE="R">Re-email
<OPTION VALUE="P"><% $pwd_change_label %>
@@ -74,7 +74,7 @@
&>
<SCRIPT TYPE="text/javascript">
document.getElementById("<%$id%>_<%$field%>").onchange = function() {
- if (this.value == "P") { changepw<%$id%>_toggle(true); }
+ if (this.value == "P" || this.value == "E") { changepw<%$id%>_toggle(true); }
return false
}
</SCRIPT>