Loading...
 
Skip to main content

Last field of a tracker cannot be edited when rating is allowed on the tracker

Status
Closed
Subject
Last field of a tracker cannot be edited when rating is allowed on the tracker
Version
1.9.x
Category
  • Error
  • Usability
Feature
Rating
Trackers
Resolution status
Invalid
Submitted by
rv540
Volunteered to solve
rv540
Lastmod by
amette
Rating
(0)
Description

The problem is when you create a tracker and you allow Rating on it.
Then you can add new items, but when you try to edit an existing item, the last field of the tracker is never saved.

this line is commented (line 152 of tiki-view_tracker_item.php)

Copy to clipboard
if ($xfields["data"][$i]['type'] == 's') { //$ins_fields["data"][$i] = $xfields["data"][$i]; $fields["data"][$i] = $xfields["data"][$i]; }


so ))$ins_fields0(( becomes an empty index in this array because the field 'Rating' is of type 's' (system).

Later in the function 'replace_tracker(...)' of trackerlib, ins_fields are parsed inside a loop from 0 to size of ins_fields - 1, so the last item is never seen.

I don't know exactly with somebody commented the line, but it works for me if I uncomment it.

Solution

I remember that problem.. but can't reproduce it now.. and I can't find that piece of code...

Fixed?

Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Please demonstrate your bug on show2.tiki.org
Demonstrate Bug (older Tiki versions)
Ticket ID
271
Created
Tuesday 28 June, 2005 16:15:43 UTC
by Unknown
LastModif
Thursday 30 September, 2021 07:07:29 UTC


Collapse/expand modules below
Show PHP error messages