RT# 75817 - fixed enable selection to send password reset and to allow you to set...
authorChristopher Burger <burgerc@freeside.biz>
Tue, 1 Aug 2017 19:08:57 +0000 (15:08 -0400)
committerChristopher Burger <burgerc@freeside.biz>
Fri, 18 Aug 2017 17:09:24 +0000 (13:09 -0400)
FS/FS/cust_contact.pm
httemplate/elements/contact.html

index 6820ac4..118a9e0 100644 (file)
@@ -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');
   }
index df2107a..905d3d8 100644 (file)
@@ -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>