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 13:09:24 -0400
commitec8a6d7d6c309c1d452f690cc0f3f70b8da2e3be (patch)
treed12fd9ec2693eccc1a1939441b6ad3351912fbbe
parenta08453e81bddef781785954516d4ca176bf7a6d8 (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 df2107ac1..905d3d87d 100644
--- a/httemplate/elements/contact.html
+++ b/httemplate/elements/contact.html
@@ -53,7 +53,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 %>
@@ -70,7 +70,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>