webbuild-cgi: fix autodist checkbox not working if no permissions for maintainer mode

This commit is contained in:
Silvan 2024-04-18 13:36:48 +02:00
parent 91c50976a9
commit b24249e474
4 changed files with 3 additions and 4 deletions

View File

@ -1 +1 @@
VERSION = 1.5.0 VERSION = 1.5.1

View File

@ -5,7 +5,7 @@
# #
# Released under the terms of the GNU GPL release 3 license # Released under the terms of the GNU GPL release 3 license
# #
VERSION=1.5.0 VERSION=1.5.1
me=(${0##*/} $VERSION "Tue Jan 26 2016") me=(${0##*/} $VERSION "Tue Jan 26 2016")
exec 3>`readlink /proc/self/fd/0` exec 3>`readlink /proc/self/fd/0`

View File

@ -4,7 +4,7 @@
# #
# Released under the terms of the GNU GPL release 3 license # Released under the terms of the GNU GPL release 3 license
# #
VERSION=1.5.0 VERSION=1.5.1
BASE_REPOSITORY=base BASE_REPOSITORY=base
PORT_REPOSITORY=base PORT_REPOSITORY=base

View File

@ -679,7 +679,6 @@ echo -n "REQUEST=rpmmanager\");>"
echo -n " <span>Autodist:<input type=checkbox id=\"advancedcontrols\" " echo -n " <span>Autodist:<input type=checkbox id=\"advancedcontrols\" "
echo -n "onclick=ajax_getvalues(\"" echo -n "onclick=ajax_getvalues(\""
echo -n "ENVIRONMENT=$ENVIRONMENT&REPOSITORY=$REPOSITORY&PACKAGE=$PACKAGEENCODED&" echo -n "ENVIRONMENT=$ENVIRONMENT&REPOSITORY=$REPOSITORY&PACKAGE=$PACKAGEENCODED&"
echo -n "MAINTAINERMODE=\"+getElementById('maintain').checked+\"&"
echo -n "ADVANCEDCONTROLSSWITCH=\"+getElementById('advancedcontrols').checked); $CHECKED>" echo -n "ADVANCEDCONTROLSSWITCH=\"+getElementById('advancedcontrols').checked); $CHECKED>"
# privacy mode checkbox # privacy mode checkbox
[ "$STATE_PRIVACYMODE" ] && CHECKED="checked=checked" || CHECKED= [ "$STATE_PRIVACYMODE" ] && CHECKED="checked=checked" || CHECKED=