From 663d5ff8ac6aa21fb895c6c1e838cc8338490e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Thu, 19 Dec 2019 17:20:59 +0100 Subject: [PATCH] Version19.97.2 --- sql/swad.sql | 2 +- swad_centre.c | 5 ++++- swad_changelog.h | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/sql/swad.sql b/sql/swad.sql index 8d676082a..13611c8f5 100644 --- a/sql/swad.sql +++ b/sql/swad.sql @@ -1082,7 +1082,7 @@ CREATE TABLE IF NOT EXISTS sessions ( LastPageMsgRcv INT NOT NULL DEFAULT 1, LastPageMsgSnt INT NOT NULL DEFAULT 1, WhatToSearch TINYINT NOT NULL DEFAULT 0, - SearchString VARCHAR(255) NOT NULL DEFAULT '', + SearchStr VARCHAR(2047) NOT NULL DEFAULT '', SideCols TINYINT NOT NULL DEFAULT 3, UNIQUE INDEX(SessionId), INDEX(UsrCod)); diff --git a/swad_centre.c b/swad_centre.c index aedb14eb6..b1439fe6d 100644 --- a/swad_centre.c +++ b/swad_centre.c @@ -329,7 +329,10 @@ static void Ctr_Configuration (bool PrintView) Ctr_ConfigTitle (PutLink); /***** Centre map *****/ - Ctr_ConfigMap (); + // Coordinates 0, 0 means not set ==> don't show map + if (Gbl.Hierarchy.Ctr.Coord.Latitude || + Gbl.Hierarchy.Ctr.Coord.Longitude) + Ctr_ConfigMap (); /***** Centre photo *****/ Ctr_ConfigPhoto (PrintView,PutLink); diff --git a/swad_changelog.h b/swad_changelog.h index 8079f730d..3f7ee5b9e 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -492,7 +492,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.97.1 (2019-12-19)" +#define Log_PLATFORM_VERSION "SWAD 19.97.2 (2019-12-19)" #define CSS_FILE "swad19.97.css" #define JS_FILE "swad19.91.1.js" /* @@ -500,6 +500,8 @@ ps2pdf source.ps destination.pdf // TODO: Impedir la creación y edición de proyectos si no son editables. // TODO: No se puede entrar con DNI '1' suponiendo que no tenga password ¿por qué? + Version 19.97.2: Dec 19, 2019 Don't show centre map when coordinates are 0. + Fixed bug in database installation, reported by José Luis Amador Moreno. (249809 lines) Version 19.97.1: Dec 19, 2019 Fix bug in assignments. (249804 lines) Version 19.97: Dec 19, 2019 Forms to edit centro latitude, longitude and altitude. (249807 lines) 3 changes necessary in database: