blocking string matches unintended tickets
|Reported by:||jeffnorman||Owned by:||Noah Kantrowitz|
Setting the blocking field of a ticket to "22" will block the tickets 22 and 2. Similarly, setting the blocking field of a ticket to "14" will block ticket 14 and 4.
I would guess that setting the blocking field to "212" would block ticket 212, 12, and 2, but I didn't test with a system containing that many tickets.
I haven't dug into the code for a solution yet, but I'd imagine that the problem is caused because a ticket's id matched as a string only against the end of the blocking field string, disregarding any part of the string that is longer than the current id's string.
I'd suggest making the match numeric, if possible.