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
- 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 clipboardif ($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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is currently unavailableUnable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
- Ticket ID
- 271
- Created
- Tuesday 28 June, 2005 16:15:43 UTC
by Unknown - LastModif
- Thursday 30 September, 2021 07:07:29 UTC