Loading...
 
Skip to main content

Id of category tracker field has got an extra [] after the ins_123

Status
Open
Subject
Id of category tracker field has got an extra [] after the ins_123
Version
15.x
Category
  • Usability
Feature
Category
Trackers
Resolution status
New
Submitted by
Fernando Torres
Lastmod by
Fernando Torres
Rating
(0)
Description

Was doing some tests with JQuery, and found out that any category field will have an extra pair of brackets after the FieldId → ins_341[]
Run into some trouble to use it.
The other tracker fields will just end up in the number. This might be a problem to somepeople, speccialy by using plugins that will target it, like trackertoggle.

Tried to look in the plugin php to see where this is generated but coudn`t find it.

Below is the complete code for field 15 (category field) I used in a test tracker

Copy to clipboard
<select name="ins_15[]" class="form-control" aria-invalid="false"> <option value=""></option> <option value="1">A</option> <option value="2">B</option> </select>


Thanks

Importance
4
Easy to solve?
6
Priority
24
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5983
Created
Saturday 11 June, 2016 04:38:16 UTC
by Fernando Torres
LastModif
Saturday 11 June, 2016 04:38:16 UTC


Show PHP error messages