summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-04-24 11:48:26 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-04-24 13:59:31 +0200
commitdbfc6aafb4d45fcc8954c9b7bf6b9a6c63ef0c07 (patch)
tree64fa1f7b20690643ab1e5de5f85863cec24d99d5
parent88fc95a93b9db4528257c4d9e4a39eed22c68783 (diff)
#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.
-rw-r--r--admin/WebConsole/includes/comunes.php2
1 files changed, 1 insertions, 1 deletions
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.")";