fixes core#2974, overrides break membership update status when removed
authorJon Goldberg <jon@megaphonetech.com>
Tue, 30 Nov 2021 20:57:55 +0000 (15:57 -0500)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 1 Dec 2021 20:58:31 +0000 (07:58 +1100)
templates/CRM/Member/Form/Membership.tpl

index 3387fd890ffeec091840e6d8b925453051af0695..4cf2f8d956c6443fd4a8efdeb0f7c97770188d3a 100644 (file)
           cj('#memberStatus').hide();
           cj('#memberStatus_show').show();
           cj('#status-override-end-date').hide();
+          cj('#status_id option[selected]').removeAttr('selected');
           break;
         case '1':
           cj('#memberStatus').show();
           cj('#memberStatus').hide( );
           cj('#memberStatus_show').show( );
           cj('#status-override-end-date').hide();
+          cj('#status_id option[selected]').removeAttr('selected');
           break;
       }
     }