Re: [rt-users] Categories are based on... How to handle the same value for multiple parent categories

2011-11-16 Thread Jim Lesinski
Just a final note on this - After doing some more investigation, it seems that while Request Tracker doesn't restrict you from creating 2 (or more) drop down values at the same level with the same string value, it also does't use the record ID to filter subsequent drop downs either. - it uses the

Re: [rt-users] Categories are based on... How to handle the same value for multiple parent categories

2011-11-14 Thread Bart
We have a similar setup, and I'm afraid there isn't much you can change about it (to my knowledge at least). We've made it look like this: (CF names) - Item A - Item B - Item C When it comes to the search builder you'll see duplicate values, but if you search on Item C with

Re: [rt-users] Categories are based on... How to handle the same value for multiple parent categories

2011-11-14 Thread Kevin Falcone
On Fri, Nov 11, 2011 at 03:01:18PM -0500, Jim Lesinski wrote: Hi, In request tracker, how would you recommend setting up your dependent drop down lists that have a consistent drop down value for multiple parent values? Below, under the 1st level Administration value, I show an

Re: [rt-users] Categories are based on... How to handle the same value for multiple parent categories

2011-11-14 Thread Jim Lesinski
I wouldn't think that the searchbuilder would show the same string value though if you have the value occurring multiple times based on a parent field. In my example below the value softwarename1.1 will show up in the searchbuilder each time I have entered it for that field. What I was suggesting

Re: [rt-users] Categories are based on... How to handle the same value for multiple parent categories

2011-11-14 Thread Jim Lesinski
I had some time after work to code up a possible solution for the searchbuilder. I am new to perl so feel free to correct me. Below is a snippet of code from /html/Elements/SelectCustomFieldValue, starting at line 48. I have added my name after the lines I added to make the search builder drop

Re: [rt-users] Categories are based on... How to handle the same value for multiple parent categories

2011-11-14 Thread Josh Narins
 I don't know anything about your patch, but with Perl, it is more common to write something like... next if $seen{ $value-Name }++; From: Jim Lesinski [mailto:jim.lesin...@gmail.com] Sent: Monday, November 14, 2011 07:06 PM To: rt-users@lists.bestpractical.com

Re: [rt-users] Categories are based on... How to handle the same value for multiple parent categories

2011-11-14 Thread Jim Lesinski
Right, but I think then I'd have to build an array of names and then iterate through that second array to output the option values. I am not sure which would be more efficient but there is probably a better way to do it. Either way the result of the code would be ideally added to the base

Re: [rt-users] Categories are based on... How to handle the same value for multiple parent categories

2011-11-14 Thread Josh Narins
The array of names is get-at-able with keys %seen From: Jim Lesinski [mailto:jim.lesin...@gmail.com] Sent: Monday, November 14, 2011 08:19 PM To: Josh Narins Cc: rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com Subject: Re: [rt-users] Categories are based on... How to handle the