[Rt-commit] rt branch 5.0/fix-enable-checkbox-on-scrip-creation created. rt-5.0.4-64-gcec8be7892

BPS Git Server git at git.bestpractical.com
Mon Jul 17 18:31:56 UTC 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/fix-enable-checkbox-on-scrip-creation has been created
        at  cec8be7892333485e2afa9112b2027a1a28324db (commit)

- Log -----------------------------------------------------------------
commit cec8be7892333485e2afa9112b2027a1a28324db
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date:   Mon Jul 17 14:47:58 2023 -0300

    Fix Enable checkbox behavior on Scrip Creation
    
    "Enable" checkbox had no effect on Scrip Creation page and Scrips were
    being created as enabled regardless of the checkbox state.

diff --git a/share/html/Admin/Scrips/Create.html b/share/html/Admin/Scrips/Create.html
index a5e4b3de9d..90d5cc7ba7 100644
--- a/share/html/Admin/Scrips/Create.html
+++ b/share/html/Admin/Scrips/Create.html
@@ -97,6 +97,8 @@ $Global => undef
 my @results;
 
 $ARGS{'Enabled'} = 1 unless $ARGS{'SetEnabled'};
+$ARGS{"Disabled"} = not $ARGS{"Enabled"};
+
 
 my $queue_obj;
 if ( $Queue ) {

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


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list