Disabled was the column I missed thanks. Now I won't get double matches/count on some report queries by Category!<br><br><div class="gmail_quote">On Wed, Mar 4, 2009 at 1:29 PM, Kenneth Crocker <span dir="ltr"><<a href="mailto:KFCrocker@lbl.gov">KFCrocker@lbl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Stephen,<br>
<br>
<br>
Well, it could be a couple of things. First, and simplest, is the one with the earliest creation date may be disabled. You didn't show that field from the DataBase so I can't say for sure that is it. When a user changes the value for a CF (defined as "select one value") on a ticket, it keeps the old record and flags it as disabled and then creates a new one for the new value. You could find out about this by looking at your transaction table. It would most likely show there, since those kind of changes can be seen in a ticket's history.<br>
The other possibility is that the Custom Field was defined as "Select Multiple Values" and the user selected a single value and then selected another, or selected both at the same time. Either way, you will end up with two records for the same Custom Field for the same ticket and both will be enabled. Hope this helps.<br>
<br>
Kenn<br>
LBNL<div class="im"><br>
<br>
On 3/3/2009 9:12 PM, Stephen Cochran wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
I should add that the two results do have different Created values:<br>
<br>
+-------+----------+----------+---------------------+---------------------+<br>
| id | ObjectId | Content | LastUpdated | Created |<br>
+-------+----------+----------+---------------------+---------------------+<br>
| 24363 | 80487 | Email | 2009-02-25 13:23:16 | 2009-02-23 14:20:58 |<br>
| 24544 | 80487 | Hardware | 2009-02-25 13:23:16 | 2009-02-25 13:23:16 |<br>
+-------+----------+----------+---------------------+---------------------+<br>
2 rows in set (0.00 sec)<br>
<br>
<br>
<br></div><div class="im">
On Wed, Mar 4, 2009 at 12:06 AM, Stephen Cochran <<a href="mailto:stephen.a.cochran.lists@cahir.net" target="_blank">stephen.a.cochran.lists@cahir.net</a> <mailto:<a href="mailto:stephen.a.cochran.lists@cahir.net" target="_blank">stephen.a.cochran.lists@cahir.net</a>>> wrote:<br>
<br>
<br>
Any idea why I'd be seeing the following in the<br>
ObjectCustomFieldValues table:<br>
<br>
mysql> select id, CustomField, ObjectType, ObjectId, Content,<br>
LastUpdated from ObjectCustomFieldValues where Objectid = 80487 and<br>
CustomField = 5;<br>
+-------+-------------+------------+----------+----------+---------------------+<br>
| id | CustomField | ObjectType | ObjectId | Content |<br>
LastUpdated |<br>
+-------+-------------+------------+----------+----------+---------------------+<br>
| 24363 | 5 | RT::Ticket | 80487 | Email |<br>
2009-02-25 13:23:16 |<br>
| 24544 | 5 | RT::Ticket | 80487 | Hardware |<br>
2009-02-25 13:23:16 |<br>
+-------+-------------+------------+----------+----------+---------------------+<br>
2 rows in set (0.00 sec)<br>
<br>
Two rows being inserted at exactly the same time with different<br>
Contents?<br>
<br>
FWIW, came across this while pulling out TimeTaken info from the<br>
Transactions table and mapping it to a Category custom field. Was<br>
getting duplicates that it took me a while to track down.<br>
<br>
<br>
<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
<a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users" target="_blank">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br>
<br>
Community help: <a href="http://wiki.bestpractical.com" target="_blank">http://wiki.bestpractical.com</a><br>
Commercial support: <a href="mailto:sales@bestpractical.com" target="_blank">sales@bestpractical.com</a><br>
<br>
<br>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank">http://rtbook.bestpractical.com</a><br>
</blockquote>
<br>
</blockquote></div><br>