diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2019-12-20 11:09:25 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-01-07 15:42:59 +0100 |
commit | 25318fb013a332cf29994784b4631bcaa00e525a (patch) | |
tree | 8b8bf52984fe995d2d3e6f6e2a3cf1cc80e5ef59 /admin/WebConsole/gestores | |
parent | daf9bccfb34a9d006311105c565056be391ca045 (diff) |
#948 Fix entity (Entidad) creation
Pepe Frias reports that the creation of a new entity does not work. The
WebConsole throws this error:
004 : Comando Error - La sentencia SQL del comando no es correcta.
The WebConsole treats the parameter $ogunit as a string but the Database
treats $ogunit as a tinyint. So, when the WebConsole tries to do the
query the Database throws an error code: 1366.
Error number: 1366; Symbol: ER_TRUNCATED_WRONG_VALUE_FOR_FIELD;
SQLSTATE: HY000
Message: Incorrect %s value: '%s' for column '%s' at row %ld
This commit changes the behaviour of gestor_entidades.php to treat
ogunit as an integer.
Diffstat (limited to 'admin/WebConsole/gestores')
-rw-r--r-- | admin/WebConsole/gestores/gestor_entidades.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/gestores/gestor_entidades.php b/admin/WebConsole/gestores/gestor_entidades.php index 7c89d30b..3afe104a 100644 --- a/admin/WebConsole/gestores/gestor_entidades.php +++ b/admin/WebConsole/gestores/gestor_entidades.php @@ -119,7 +119,7 @@ function Gestiona(){ $cmd->CreaParametro("@identidad",$identidad,1); $cmd->CreaParametro("@nombreentidad",$nombreentidad,0); $cmd->CreaParametro("@comentarios",$comentarios,0); - $cmd->CreaParametro("@ogunit",$ogunit,0); + $cmd->CreaParametro("@ogunit",$ogunit,1); switch($opcion){ case $op_alta : |