[Rt-devel] Patch to add attributes to queues and cf's in initialdata
Chad Granum
chad at opensourcery.com
Mon Jan 5 18:26:16 EST 2009
This patch modifies Handler.pm, it allows you to specify attributes on
a queue or cf when defining it in initialdata.
example:
@CustomFields = (
{
Name => 'MyField',
...
Attributes => [
{
Name => MyAttribute,
Content => CONTENT
}
];
}
)
Syntax is identical in @Queues.
Under the hood it simply waits until the field/queue are generated, then
pushes your attributes into the @Attributes array w/ Object => 'newly
created object' added. Since @Attributes is processed later this works
as desired, and attributes are all processed in just the one place.
-Chad Granum
OpenSourcery (www.opensourcery.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rt-item-attributes.patch
Type: text/x-diff
Size: 1530 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20090105/3c6332fb/attachment.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20090105/3c6332fb/attachment.pgp
More information about the Rt-devel
mailing list