Loading...
 
Skip to main content

Mathematical Calculation Field, "Less-Than" function has Logical Error

Status
Open
Subject
Mathematical Calculation Field, "Less-Than" function has Logical Error
Version
24.x
Category
  • Bug
Feature
Advanced Rating Language / Mathematical calculation tracker field
Trackers
Resolution status
New
Submitted by
Kevin Doyle
Lastmod by
Kevin Doyle
Rating
(0)
Description

Create a tracker with a Numeric and a Mathematical Calculation Field.
I want to append a zero to numbers less than 10 to patch a tracker sort order listing issue
(if (less-than testingtrackerNum 10)
(concat 0 testingtrackerNum) testingtrackerNum
)

The above function adds a zero to any number less than 11. Even though the upper test limit is 10.
So the test (less-than 10 10) will be true, which is not the case in reality .
Look at the attached screen grab too

Files
  1. Screenshot From 2023 01 02 01 57 35
Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8288
Created
Monday 02 January, 2023 02:03:48 UTC
by Kevin Doyle
LastModif
Saturday 06 July, 2024 10:21:44 UTC


Show PHP error messages