Loading...
 
Skip to main content

Trackers, Mathematical field; Better verbose on error when the parameter Calculation is empty

Status
Open
Subject
Trackers, Mathematical field; Better verbose on error when the parameter Calculation is empty
Version
24.x
25.x
Category
  • Error
  • Developer Training
  • Easy for Newbie Dev
Feature
Advanced Rating Language / Mathematical calculation tracker field
UI / UX (User interface and experience)
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Keep informed
Adrien
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

On a Tiki24 (any Tiki 😉 ) in a tracker, when you use a Mathematical field and save it with the Calculation parameter empty, on item save the field value displayed the following error :

Expecting "(" near ""

It is wrong and doesn't really help.

Solution

When there is no Calculation parameter, the message should be:
"The parameter Calculation is empty, please edit the field and add a Calculation."

Ideally, as this information is an error, this message should be visible for admin or people with this tracker field edit permission.
Other user shouldn't see anything for the value. (likely the Tiki owner don't want to show the world he made a mistake somewhere) 😉

Importance
5
Easy to solve?
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8071
Created
Friday 11 February, 2022 06:51:05 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Friday 11 February, 2022 06:56:36 UTC


Show PHP error messages