Commit a3fba86b authored by Philippe Bollard's avatar Philippe Bollard
Browse files

Merge branch 'glpi-292194'

parents 181121ea a7a3d180
......@@ -50,7 +50,7 @@ DPI_MIN = 50
DPI_MAX = 300
# processing constants
WL = 1
WL = 10 # Old: 1 (GLPI #292194)
WL_MIN = -1000
WL_MAX = 1000
......
......@@ -41,7 +41,7 @@ from apps.globals import UNITS
from apps.globals import VERSION
from apps.globals import USER_AGENT_TIMESERIES
from apps.globals import WIDTH_MIN, WIDTH_MAX
from apps.globals import WL_MIN, WL_MAX
from apps.globals import WL, WL_MIN, WL_MAX
from apps.globals import XTICKS_ROTATION
......@@ -320,7 +320,7 @@ def check_timeseriesplots_parameters(params):
return error_param(params, Error.WATER_EARTHUNITS)
if params["waterlevel"] is None:
params["waterlevel"] = 1.0
params["waterlevel"] = float(WL) # Old: 1.0 (GLPI #292194)
elif is_valid_float(params["waterlevel"], WL_MIN, WL_MAX):
params["waterlevel"] = float(params["waterlevel"])
elif params["waterlevel"].lower() == "none":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment