diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-08-01 15:08:57 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-08-01 15:08:57 -0400 |
commit | cbd61e030fc33f1b858aa874fc25e138d797b4f7 (patch) | |
tree | bcc191cf6668547f4387b06c9768a564236c0380 | |
parent | 5665dc8243598e7ca6567719b6e91efcfbbea209 (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.pm | 2 | ||||
-rw-r--r-- | httemplate/elements/contact.html | 4 |
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> |