Custom Field search - dynamically modify query string

This seems rather unlikely, but I wanted to ask just in case someone
knows a simple way this could be done.

I have a custom field containing mac address values and I store them
without the : colon characters. Is there a simple way, (maybe a
callback or _Local overlay or something), where I could make it so
that if someone tries to search by that custom mac address field, that
I strip out any colons before performing the search?

Thanks,

Andy Harrison
public key: 0x67518262

Hi,

You can wrap _CustomFieldLimit in lib/RT/Tickets.pm, but don’t forget to
update link in %dispatch.On Tue, Jun 11, 2013 at 11:37 PM, Andy Harrison aharrison@gmail.com wrote:

This seems rather unlikely, but I wanted to ask just in case someone
knows a simple way this could be done.

I have a custom field containing mac address values and I store them
without the : colon characters. Is there a simple way, (maybe a
callback or _Local overlay or something), where I could make it so
that if someone tries to search by that custom mac address field, that
I strip out any colons before performing the search?

Thanks,


Andy Harrison
public key: 0x67518262


RT Training in Seattle, June 19-20: Training — Best Practical Solutions

Best regards, Ruslan.

Doh… it would have been awful helpful if I’d mentioned I was
talking about a User custom field.

Regardless, your suggestion actually got me thinking in the right
direction anyway, so it occurred to me exactly how to make this do
what I want. :slight_smile:

Thanks!

Andy Harrison
public key: 0x67518262On Wed, Jun 12, 2013 at 12:41 PM, Ruslan Zakirov ruz@bestpractical.com wrote:

Hi,

You can wrap _CustomFieldLimit in lib/RT/Tickets.pm, but don’t forget to
update link in %dispatch.

On Tue, Jun 11, 2013 at 11:37 PM, Andy Harrison aharrison@gmail.com wrote:

This seems rather unlikely, but I wanted to ask just in case someone
knows a simple way this could be done.

I have a custom field containing mac address values and I store them
without the : colon characters. Is there a simple way, (maybe a
callback or _Local overlay or something), where I could make it so
that if someone tries to search by that custom mac address field, that
I strip out any colons before performing the search?

Thanks,


Andy Harrison
public key: 0x67518262


RT Training in Seattle, June 19-20: Training — Best Practical Solutions


Best regards, Ruslan.