From f738ae919bc52909a379ece8aac35e61a3fb0fb7 Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Tue, 11 May 2021 10:54:53 +0200 Subject: #1047 console - status: There is a function that collects the computers in the classroom and another that paints them, passing the computers from one to another through a global variable. If a classroom has fewer computers than the previous one, they paint more than necessary. The problem has arisen when including the layout of the classroom in the status: when it was painted in an old way there was an index that limited the number of computers, with the new layout of the classroom it takes all of those in the variable. The variable is flushed every time the computers are collected. --- admin/WebConsole/principal/aula.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'admin') diff --git a/admin/WebConsole/principal/aula.php b/admin/WebConsole/principal/aula.php index 81c7b676..dedb01b8 100644 --- a/admin/WebConsole/principal/aula.php +++ b/admin/WebConsole/principal/aula.php @@ -233,6 +233,9 @@ function RecorreOrdenadores($cmd){ global $cadenaip; + // empty variable - Fixes error in status called from organizational unit (#1047) + $map = []; + $cmd->texto.= " ORDER BY n_row, n_col"; $rs=new Recordset; $rs->Comando=&$cmd; -- cgit v1.2.3-18-g5258