On Fri, Apr 26, 2013 at 12:12:48PM +0300, Pavel Gulchouck wrote:
> I want to add one custom script to @JSFiles, but cannot find 
> anything like Push() or Add() in config parser, only Set().
> Is the only way copy all predefined array from RT_Config.pm to 
> RT_SiteConfig.pm?

For @JSFiles you have to copy (we've fixed this in the development
series).  You also have to be careful on upgrades in case we add files
to @JSFiles.

If you're writing a local extension, you want to use
http://bestpractical.com/rt/docs/latest/RT.html#AddJavaScript
from your code rather than munging the config.

> The same question for add (or modify) some key/value of %Lifecycles hash 
> without copying it all to RT_SiteConfig.pm.

For Lifecyeles, if you want to change general you have to copy all of
general, but you can skip copying the approvals one.
We merge at the top level of that hash, but not deeper.

-kevin

Attachment: pgp6AT41MxPOG.pgp
Description: PGP signature

Reply via email to