From: Jonny B. <tw...@no...> - 2009-06-02 14:38:18
|
Re comments on: http://dev.tikiwiki.org/Release30process#Profiles about duplicate broken trackers created by running profiles more than once. I've been trying to address this - i've fixed replace_tracker() so profiles will re-use a tracker with the same name, but tracker admin can still make many trackers with the same name (why, oh why?) but now i find replace_tracker_field() deletes any previous field with a given id and then recreates it (so you loose all the data) - but i suppose it is called _replace_ This seems bad, and presumably the reason for the comments about bug_tracker profile above. I could use the same trick (checking for fieldId===false instead of 0) to preserve the existing behaviour, but i'm just not sure what the desired result should be - i know i may well be missing something here, as a tracker-n00b, so thought i should check (fields with the same name on a single tracker seems to me like asking for trouble, but maybe it's a perms/workspace type thing?) Any help or pointers to more documentation gratefully appreciated (nothing significant on this subject on doc.tw.o, afaics) Thanks jonny |