Project

General

Profile

Actions

Evolution #1516

closed

Indicator - do not allow gauge viz if max value == threshold value

Added by Simon about 1 year ago. Updated about 1 year ago.

Status:
Fermé
Priority:
Normal
Assignee:
Category:
general
Target version:
Start date:
10/06/2023
Due date:
% Done:

100%

Estimated time:
1.00 h
Resolution:

Description

do not allow gauge viz if max value == threshold value because :
- it will generate DivisionByZeroError
- because visually it can be at the middle / end of the gauge


Related issues 1 (0 open1 closed)

Related to Evolution #1523: Indicators - eventually, implement javascript validation on min / max / threshold valuesFerméSimon10/13/2023

Actions
Actions #1

Updated by Simon about 1 year ago

[06-Oct-2023 09:14:44 Europe/Madrid] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /homepages/1/d148916023/htdocs/linea21-pcpf/dashboard/common.php:180
Stack trace:
#0 /homepages/1/xxx/htdocs/linea21-/dashboard/common.php(257): getPositionfromValue()
#1 /homepages/1/xxx/htdocs/linea21-/dashboard/common.php(497): getGaugeViz()
#2 /homepages/1/xxx/htdocs/linea21-/dashboard/display.php(87): getViz()
#3 /homepages/1/xxx/htdocs/linea21-/public/dist/tpl_dashboard.php(88): DisplayListValuesByLevelsAlt()
#4 /homepages/1/xxx/htdocs/linea21-/lib/lib_common.php(1179): include_once('/homepages/1/d1...')
#5 /homepages/1/xxx/htdocs/linea21-/lib/items.php(167): distInclude()
#6 /homepages/1/xxx/htdocs/linea21-/templates/public/PCPF-2022/index.php(75): DisplayTemplate()
#7 /homepages/1/xxx/htdocs/linea21-/public/index.php(89): include_once('/homepages/1/d1...')
#8 {main}
thrown in /homepages/1/xxx/htdocs/linea21/dashboard/common.php on line 180
Actions #2

Updated by Simon about 1 year ago

  • Related to Evolution #1523: Indicators - eventually, implement javascript validation on min / max / threshold values added
Actions #3

Updated by Simon about 1 year ago

  • Status changed from Nouveau to Fermé
  • % Done changed from 0 to 100

Applied in changeset linea21|r4270.

Actions

Also available in: Atom PDF