From dbfc6aafb4d45fcc8954c9b7bf6b9a6c63ef0c07 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 24 Apr 2020 11:48:26 +0200 Subject: #974 Fix task edit form We have seen that if you try to edit a task and assign it to a group of computers the form do not work. This happens because the string containing the name of primary key of the table gruposordenadores (Groups of computers) has a trailing white space. This commit fixes this bug removing the trailing whitespace. --- admin/WebConsole/includes/comunes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/WebConsole/includes/comunes.php b/admin/WebConsole/includes/comunes.php index 7f326fd5..f6598c86 100644 --- a/admin/WebConsole/includes/comunes.php +++ b/admin/WebConsole/includes/comunes.php @@ -369,7 +369,7 @@ $selecHtml=HTMLSELECT($cmd,$idcentro,'aulas',$idambito,'idaula','nombreaula',$wdth); break; case $AMBITO_GRUPOSORDENADORES : - $selecHtml=HTMLSELECT($cmd,0,'gruposordenadores',$idambito,'idgrupo ','nombregrupoordenador',$wdth); + $selecHtml=HTMLSELECT($cmd,0,'gruposordenadores',$idambito,'idgrupo','nombregrupoordenador',$wdth); break; case $AMBITO_ORDENADORES : $clsWhere=" idaula IN (SELECT idaula FROM aulas WHERE idcentro=".$idcentro.")"; -- cgit v1.2.3-18-g5258