[Rt-commit] rt branch, 4.4/fix-disabled-recipients, created. rt-4.4.1-322-g94bee42

Shawn Moore shawn at bestpractical.com
Tue Mar 14 13:49:44 EDT 2017


The branch, 4.4/fix-disabled-recipients has been created
        at  94bee42b8a00631519b16e2bfda1d29a3908aa7b (commit)

- Log -----------------------------------------------------------------
commit 94bee42b8a00631519b16e2bfda1d29a3908aa7b
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Tue Mar 14 17:46:37 2017 +0000

    On form submit, explicitly re-enable PreviewScrips checkboxes
    
    Otherwise we inadvertently suppress all outgoing email, since the
    disabled checkboxes are excluded from the form submission.
    
    This fixes a bug introduced in f0a7105da8bc8f00a54bcdb5bfd48d788bbb888b
    and 4b11cf37360ad5084f6428c62553ccc6858313a7

diff --git a/share/html/Ticket/Update.html b/share/html/Ticket/Update.html
index 8ede039..0759403 100644
--- a/share/html/Ticket/Update.html
+++ b/share/html/Ticket/Update.html
@@ -258,6 +258,12 @@ jQuery( function() {
    }
 
    jQuery("#ticket-update-metadata :input, #UpdateCc, #UpdateBcc").change( updateScrips );
+
+   jQuery("body").on("submit", "form", function () {
+       jQuery("#recipients input[name=TxnSendMailToAll], #recipients input[name=TxnSendMailTo]").attr('disabled', false);
+       jQuery("#previewscrips input[name=TxnSendMailToAll], #previewscrips input[name=TxnSendMailTo]").attr('disabled', false);
+   });
+
 });
 </script>
 % }

-----------------------------------------------------------------------


More information about the rt-commit mailing list