From: <lph...@us...> - 2012-09-13 21:02:30
|
Revision: 42951 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=42951&view=rev Author: lphuberdeau Date: 2012-09-13 21:02:24 +0000 (Thu, 13 Sep 2012) Log Message: ----------- [FIX]?\194?\160array_unique() when building item list modifies tracker items on edit without user intervention Modified Paths: -------------- trunk/lib/core/Tracker/Field/ItemLink.php Modified: trunk/lib/core/Tracker/Field/ItemLink.php =================================================================== --- trunk/lib/core/Tracker/Field/ItemLink.php 2012-09-13 20:47:26 UTC (rev 42950) +++ trunk/lib/core/Tracker/Field/ItemLink.php 2012-09-13 21:02:24 UTC (rev 42951) @@ -373,7 +373,9 @@ false ); if (!$this->getOption(11) || $this->getOption(11) != 'multi') { - $data['list'] = array_unique($data['list']); + // This silently modifies tracker items when an item name is used multiple times, which really isn't impossible. + // If you want it, make it optional. + //$data['list'] = array_unique($data['list']); } elseif (array_unique($data['list']) != $data['list']) { $newlist = array(); foreach ($data['list'] as $k => $dl) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |