Re: [rt-users] Ticket/Display.html is just not controllable

2010-05-27 Thread Wolfram Huettermann

Kevin Falcone wrote:

On Wed, May 26, 2010 at 09:46:42AM +0200, Wolfram Huettermann wrote:
  

Hello,

I am dealing with Ticket/Display.html. What I found out:

- there is NO change in the page source the  when you change the
Mason-block
- I cannot get any information of the callback-functions used.

My task was to limit the size of the layers in which you can see the
metadata and the history of the ticket. It is more user-friendly to
scroll them.

Has anybody an idea how it could work anyway? Or is it just impossible?



Without knowing what you did, it is impossible to know what is wrong.
However, it sounds like Christian Loos has already implemented a
similar module

http://github.com/cloos/rt-extension-briefhistory

-kevin
  




Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


Hi Kevin,

I wanted to change the module Ticket/Display.html in the HTML-block. But 
its appearance and its source code  remained the same,  even after I  
had cut this block. It seems that the %init%-block creates the module 
and overlays  the HTML-code.


I even haven't got any information of the callback-functions in that 
block. Here is the init-block of Ticket/Display.html.

%INIT
$m-callback( TicketObj = $TicketObj, ARGSRef = \%ARGS, CallbackName 
= 'Initial' );
my (@Actions, $Tickets); 



unless ($id || $TicketObj) {
   Abort('No ticket specified');
}

if ($ARGS{'id'} eq 'new') {
   # {{{ Create a new ticket

   my $Queue = new RT::Queue( $session{'CurrentUser'} );
   $Queue-Load($ARGS{'Queue'});
   unless ( $Queue-id ) {
   Abort('Queue not found');
   }

   unless ( $Queue-CurrentUserHasRight('CreateTicket') ) {
   Abort('You have no permission to create tickets in that queue.');
   }

   ($TicketObj, @Actions) = CreateTicket(
   Attachments = delete $session{'Attachments'},
   %ARGS,
   );
   unless ( $TicketObj-CurrentUserHasRight('ShowTicket') ) {
   Abort(No permission to view newly created ticket 
#.$TicketObj-id..);

   }
   # }}}
} else {
   $TicketObj ||= LoadTicket($ARGS{'id'});

   $m-callback( CallbackName = 'BeforeProcessArguments',
   TicketObj = $TicketObj, Tickets = $Tickets,
   ActionsRef = \...@actions, ARGSRef = \%ARGS );
   if ( defined $ARGS{'Action'} ) {
   if ($ARGS{'Action'} =~ /^(Steal|Kill|Take|SetTold)$/) {
   my $action = $1;
   my ($res, $msg) = $TicketObj-$action();
   push(@Actions, $msg);
   }
   }

   $m-callback(CallbackName = 'ProcessArguments',
   Ticket = $TicketObj,
   ARGSRef = \%ARGS,
   Actions = \...@actions);
  
   $ARGS{UpdateAttachments} = $session{'Attachments'};

   push @Actions,
   ProcessUpdateMessage(
   ARGSRef   = \%ARGS,
   Actions   = \...@actions,
   TicketObj = $TicketObj,
   );
   delete $session{'Attachments'};

   #Process status updates
   push @Actions, ProcessTicketWatchers(ARGSRef = \%ARGS, TicketObj = 
$TicketObj );
   push @Actions, ProcessTicketBasics(  ARGSRef = \%ARGS, TicketObj = 
$TicketObj );
   push @Actions, ProcessTicketLinks(   ARGSRef = \%ARGS, TicketObj = 
$TicketObj );
   push @Actions, ProcessTicketDates(   ARGSRef = \%ARGS, TicketObj = 
$TicketObj );
   push @Actions, ProcessObjectCustomFieldUpdates(ARGSRef = \%ARGS, 
TicketObj = $TicketObj );


   # XXX: we shouldn't block actions here if user has no right to see 
the ticket,

   # but we should allow him to see actions he has done
   unless ($TicketObj-CurrentUserHasRight('ShowTicket')) {
   Abort(No permission to view ticket);
   }
   if ( $ARGS{'MarkAsSeen'} ) {
   $TicketObj-SetAttribute(
   Name = 'User-'. $TicketObj-CurrentUser-id .'-SeenUpTo',
   Content = $TicketObj-LastUpdated,
   );
   push @Actions, loc('Marked all messages as seen');
   }
}

$m-callback(
   CallbackName = 'BeforeDisplay',
   TicketObj = \$TicketObj,
   Tickets = \$Tickets,
   Actions = \...@actions,
   ARGSRef = \%ARGS,
);

# This code does automatic redirection if any updates happen.

if (@Actions) {

   # We've done something, so we need to clear the decks to avoid
   # resubmission on refresh.
   # But we need to store Actions somewhere too, so we don't lose them.
   my $key = Digest::MD5::md5_hex( rand(1024) );
   push @{ $session{Actions}-{$key} ||= [] }, @Actions;
   $session{'i'}++;
   RT::Interface::Web::Redirect( RT-Config-Get('WebURL') . 
Ticket/Display.html?id= . $TicketObj-id . results= . $key );


}

my $attachments = $m-comp('Elements/FindAttachments', Ticket = 
$TicketObj, Tickets = $Tickets);
my $attachment_content = $m-comp('Elements/LoadTextAttachments', Ticket 
= $TicketObj);


my %link_rel;
if (defined $session{'tickets'} and ($ARGS{'Query'} or 
$session{'CurrentSearchHash'}-{'Query'})) {

   my $item_map = $session{'tickets'}-ItemMap;
   $link_rel{first} = Ticket/Display.html?id= . 
$item_map-{first}   

[rt-users] Automatically updating list of legal values in combobox custom fields

2010-05-27 Thread Karl Ove Hufthammer
I have a combobox custom field with a number of possible values, e.g., 
‘foo’ and ‘bar’. However, when a user adds a new value, ’baz’, that 
value is *not* added to the list of possible values (shown the next time 
a user creates a new ticket).


Is this a bug? And if it’s not considered a bug, is it possible to add 
this functionality, so that the list of combobox values is automatically 
updated whenever a user adds a new value? It would also be nice if old 
values were automatically removed when no tickets have the values 
anymore (usually when someone enters and misspells one of the ‘legal’ 
values, and later fixes it).


--
Karl Ove Hufthammer

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

[rt-users] RTAddressRegex and ExternalAuth error

2010-05-27 Thread borngunners

I have installed Net::LDAP in cpan and installed all dependencies. I am getting 
the following error messages after restarting apache2 (fails):
 
[Wed May 26 18:06:11 2010] [error]: The RTAddressRegexp option is not set in 
the config. Not setting this option results in additional SQL queries to check $
[Wed May 26 18:06:23 2010] [error]: The RTAddressRegexp option is not set in 
the config. Not setting this option results in additional SQL queries to check $
[Wed May 26 14:06:32 2010] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.5 
with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal$
[Wed May 26 14:43:40 2010] [notice] caught SIGTERM, shutting down
[Wed May 26 14:43:43 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in 
@INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl /u$
[Wed May 26 14:43:43 2010] [error] Can't load Perl file: /opt/rt3/bin/webmux.pl 
for server UHC:80, exiting...
[Wed May 26 14:50:22 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in 
@INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl /u$
[Wed May 26 14:50:22 2010] [error] Can't load Perl file: /opt/rt3/bin/webmux.pl 
for server UHC:80, exiting...
[Wed May 26 18:51:11 2010] [error]: The RTAddressRegexp option is not set in 
the config. Not setting this option results in additional SQL queries to check $
[Wed May 26 18:51:22 2010] [error]: The RTAddressRegexp option is not set in 
the config. Not setting this option results in additional SQL queries to check $
[Wed May 26 14:51:32 2010] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.5 
with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal$
[Wed May 26 15:01:43 2010] [notice] caught SIGTERM, shutting down
[Wed May 26 15:01:46 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in 
@INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl /u$
[Wed May 26 15:01:46 2010] [error] Can't load Perl file: /opt/rt3/bin/webmux.pl 
for server UHC:80, exiting...
[Wed May 26 15:15:41 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in 
@INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl /u$
[Wed May 26 15:15:41 2010] [error] Can't load Perl file: /opt/rt3/bin/webmux.pl 
for server UHC:80, exiting...
[Wed May 26 19:16:22 2010] [error]: The RTAddressRegexp option is not set in 
the config. Not setting this option results in additional SQL queries to check $
[Wed May 26 19:16:34 2010] [error]: The RTAddressRegexp option is not set in 
the config. Not setting this option results in additional SQL queries to check $
[Wed May 26 15:16:43 2010] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.5 
with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal$
 
 
I am not sure what I am doing wrong. Please help...




Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] RTAddressRegex and ExternalAuth error

2010-05-27 Thread Mauricio Tavares
On Thu, May 27, 2010 at 10:41 AM,  borngunn...@aol.com wrote:
 I have installed Net::LDAP in cpan and installed all dependencies. I am
 getting the following error messages after restarting apache2 (fails):

 [Wed May 26 18:06:11 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 18:06:23 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 14:06:32 2010] [notice] Apache/2.2.11 (Ubuntu)
 PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
 configured -- resuming normal$
 [Wed May 26 14:43:40 2010] [notice] caught SIGTERM, shutting down
 [Wed May 26 14:43:43 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in
 @INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl
 /u$
 [Wed May 26 14:43:43 2010] [error] Can't load Perl file:
 /opt/rt3/bin/webmux.pl for server UHC:80, exiting...
 [Wed May 26 14:50:22 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in
 @INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl
 /u$
 [Wed May 26 14:50:22 2010] [error] Can't load Perl file:
 /opt/rt3/bin/webmux.pl for server UHC:80, exiting...
 [Wed May 26 18:51:11 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 18:51:22 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 14:51:32 2010] [notice] Apache/2.2.11 (Ubuntu)
 PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
 configured -- resuming normal$
 [Wed May 26 15:01:43 2010] [notice] caught SIGTERM, shutting down
 [Wed May 26 15:01:46 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in
 @INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl
 /u$
 [Wed May 26 15:01:46 2010] [error] Can't load Perl file:
 /opt/rt3/bin/webmux.pl for server UHC:80, exiting...
 [Wed May 26 15:15:41 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in
 @INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl
 /u$
 [Wed May 26 15:15:41 2010] [error] Can't load Perl file:
 /opt/rt3/bin/webmux.pl for server UHC:80, exiting...
 [Wed May 26 19:16:22 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 19:16:34 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 15:16:43 2010] [notice] Apache/2.2.11 (Ubuntu)
 PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
 configured -- resuming normal$


 I am not sure what I am doing wrong. Please help...

  I would begin with this guy here:

[Wed May 26 15:01:46 2010] [error] Can't locate
RT/Authen/ExternalAuth.pm in @INC (@INC contains:
/opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl /u$

Sounds like the RT path is not right. Was it working before? Did you
install the ubuntu RT package or got it from bestpractical?



 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Odd scrip behavior: false positives are triggered, and modifications are made but not txn rescorded

2010-05-27 Thread Jerrad Pierce
Hi All,

I'm using http://wiki.bestpractical.com/view/RtBounceHandler to detect bounces.
I then have the following scrip flag the bounced tickets, which has
been in place for months:

Custom condition: return 1 unless $self-Subject =~ /Bounce!/;
Custom action: 1;
Custom clean-up: my $curval =
$self-TicketObj-FirstCustomFieldValue('Tags') || '';
unless( $curval =~ /\bbounce\b/i ) {
  my($st, $msg) = $self-TicketObj-AddCustomFieldValue(
   Field = 'Tags',
   Value = 'bounce, ' . $curval,
   RecordTransaction = 1 );
  unless( $st ) {
$RT::Logger-warning( Couldn't prepend 'bounce' to CF 'Tags':. $msg );
return undef;
  }
}
return 1;

It seems to work when it ought, but today I just noticed that a number of
tickets have been tagged as bounce, even though they have no messages
with a subject of Bounce! This seems to occur when comments are added,
but not only on the first such transaction for a ticket. Any idea why,
and how to fix it it a non-kludgy way?

Thanks in advance!

-- 
Cambridge Energy Alliance: Save money. Save the planet.

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Automatically updating list of legal values in combobox custom fields

2010-05-27 Thread Kenneth Crocker
Karl,

Nope. It's not a bug. Having the ability to MosifyCustomField merely means
that users in a group can select or enter a value for that CF *in a ticket
*. In order to change what values can be selected, etc. the privilege
AdminCustomField needs to be applied to a group you want to have this
privilege. At our installation, we don't want every Tom, Dick and Harry
changing values for CF's that others are using, so we create Admin groups
for this ability. It keeps the Chaos factor down. Hope this helps.

Kenn
LBNL

On Thu, May 27, 2010 at 4:53 AM, Karl Ove Hufthammer k...@huftis.orgwrote:

 I have a combobox custom field with a number of possible values, e.g.,
 ‘foo’ and ‘bar’. However, when a user adds a new value, ’baz’, that value is
 *not* added to the list of possible values (shown the next time a user
 creates a new ticket).

 Is this a bug? And if it’s not considered a bug, is it possible to add this
 functionality, so that the list of combobox values is automatically updated
 whenever a user adds a new value? It would also be nice if old values were
 automatically removed when no tickets have the values anymore (usually when
 someone enters and misspells one of the ‘legal’ values, and later fixes it).

 --
 Karl Ove Hufthammer

 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Odd scrip behavior: false positives are triggered, and modifications are made but not txn rescorded

2010-05-27 Thread Jerrad Pierce
P.S. I was wrong Re: but not txn rescorded, I forgot about
HideSystemTransactions

-- 
Cambridge Energy Alliance: Save money. Save the planet.

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Error in ExtractCustomFieldValues

2010-05-27 Thread Dougherty Paul
Hi,

 

I have installed the ExtractCustomFieldValues module, and it is working
perfectlyExcept for the following error in the messages log. This
error occurs with every new ticket entered through email.

 

 Any ideas?

 

Thank you,

 

Paul

 

Error:

May 26 21:06:01 user.err servicedesk RT: Can't find string terminator
; anywhere before EOF at (eval 597) line 2.  Stack:   [(eval 597):2]  

[/opt/rt/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Acti
on/ExtractCustomFieldValues.pm:204]   

[/opt/rt/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Acti
on/ExtractCustomFieldValues.pm:106]   

[/opt/rt/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Acti
on/ExtractCustomFieldValues.pm:185]   

[/opt/rt/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Acti
on/ExtractCustomFieldValues.pm:113]   

[/opt/rt/bin/../lib/RT/ScripAction_Overlay.pm:238]   

[/opt/rt/bin/../lib/RT/Scrip_Overlay.pm:464]   

[/opt/rt/bin/../lib/RT/Scrips_Overlay.pm:196]   

[/opt/rt/bin/../lib/RT/Transaction_Overlay.pm:188]   

[/opt/rt/bin/../lib/RT/Record.pm:1457]   

[/opt/rt/bin/../lib/RT/Ticket_Overlay.pm:656]   

[/opt/rt/bin/../lib/RT/Interface/Email.pm:1444]   

[/opt/rt/share/html/REST/1.0/NoAuth/mail-gateway:61] 

(/opt/rt/local/plugins/RT-Extension-ExtractCustomFieldValues/li

 

RT 3.8.7

OS OEL 5.4 64bit

Apache 2.2.3

 


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

[rt-users] hide custom field from create/modify.html

2010-05-27 Thread G.Booth

Hi all

Im performing some ajax functions on a custom field with extremely long 
character lengths. Im linking it to the queue field, so if i select a queue, 
I get the custom field automatically populated. Im calling the custom field 
separately in the code through the API and all of this seems to work fine. 
Unfortunately the custom field exists a second time on the pages, as all 
custom fields are shown at the bottom of the create and modify.html pages - 
these instances are too short to show the data in the field.
Does anybody know if there's a way to hide a custom field from the create or 
modify.html page. Ive got about five custom fields and want to show four in 
the usual manner.


regards

Garry

ps if anybody is interested in the ajax stuff, Ill post it on the wiki

--

Dr Garry Booth
IT Services
Loughborough University

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] example.com appearing in the headers of email.

2010-05-27 Thread Kevin Falcone
On Wed, May 26, 2010 at 09:51:32AM -0800, Jason Maderios wrote:
 Found it - Page 2223
 Set($Organization, value);
 What is the impact of changing this 3 weeks into deployment?

You break existing ticket Links
If you search the wiki, I believe someone has written up how to safely
modify them

-kevin


pgpnvX3ytpv6s.pgp
Description: PGP signature

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Ticket/Display.html is just not controllable

2010-05-27 Thread Kevin Falcone
On Thu, May 27, 2010 at 09:12:55AM +0200, Wolfram Huettermann wrote:
 Kevin Falcone wrote:
 On Wed, May 26, 2010 at 09:46:42AM +0200, Wolfram Huettermann wrote:
 I am dealing with Ticket/Display.html. What I found out:
 
 - there is NO change in the page source the  when you change the
 Mason-block
 - I cannot get any information of the callback-functions used.
 
 My task was to limit the size of the layers in which you can see the
 metadata and the history of the ticket. It is more user-friendly to
 scroll them.
 
 Has anybody an idea how it could work anyway? Or is it just impossible?
 
 Without knowing what you did, it is impossible to know what is wrong.
 However, it sounds like Christian Loos has already implemented a
 similar module
 
 http://github.com/cloos/rt-extension-briefhistory
 
 
 I wanted to change the module Ticket/Display.html in the HTML-block.
 But its appearance and its source code  remained the same,  even
 after I  had cut this block. It seems that the %init%-block
 creates the module and overlays  the HTML-code.
 
 I even haven't got any information of the callback-functions in that
 block. Here is the init-block of Ticket/Display.html.

You've not actually said what callbacks you created or how you tried
to overlay Display.html by copying it to local/ or explained what you
want to accomplish, so I'm afraid I can't really guess at what you're
trying to do.  Have you read the documentation on the wiki about
customizing RT?

-kevin


pgp1z7dI3mBra.pgp
Description: PGP signature

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Automatically updating list of legal values in combobox custom fields

2010-05-27 Thread Kevin Falcone
On Thu, May 27, 2010 at 01:53:12PM +0200, Karl Ove Hufthammer wrote:
 I have a combobox custom field with a number of possible values,
 e.g., ‘foo’ and ‘bar’. However, when a user adds a new value, ’baz’,
 that value is *not* added to the list of possible values (shown the
 next time a user creates a new ticket).

This is how the code is implemented.

 Is this a bug? And if it’s not considered a bug, is it possible to
 add this functionality, so that the list of combobox values is
 automatically updated whenever a user adds a new value? It would
 also be nice if old values were automatically removed when no
 tickets have the values anymore (usually when someone enters and
 misspells one of the ‘legal’ values, and later fixes it).

If someone provided a patch for a new CF type, it'd be interesting to
see, but I do worry that the select would turn into a giant mishmash
of bad values.  The autocomplete CF has similar behavior.
There are also performance implications to selecting potentially many
values out of the large-ish ObjectCustomFieldValues.

It might actually be more interesting to see the admin UI grow the
ability to see all the currently entered but unused values for
easily adding them to the default values.

-kevin


pgpq1vzJAJhi1.pgp
Description: PGP signature

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Error in ExtractCustomFieldValues

2010-05-27 Thread Kevin Falcone
On Thu, May 27, 2010 at 10:58:31AM -0700, Dougherty Paul wrote:
 
I have installed the ExtractCustomFieldValues module, and it is working 
 perfectlyExcept
for the following error in the messages log. This error occurs with every 
 new ticket entered
through email.
 
May 26 21:06:01 user.err servicedesk RT: Can't find string terminator 
 ; anywhere before
EOF at (eval 597) line 2.  Stack:   [(eval 597):2]

Sounds like your template has a syntax error, most likely in the
postedit clause

-kevin


pgpTvW3zEPP3k.pgp
Description: PGP signature

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] hide custom field from create/modify.html

2010-05-27 Thread Kevin Falcone
On Thu, May 27, 2010 at 07:27:50PM +0100, G.Booth wrote:
 Hi all
 
 Im performing some ajax functions on a custom field with extremely
 long character lengths. Im linking it to the queue field, so if i
 select a queue, I get the custom field automatically populated. Im
 calling the custom field separately in the code through the API and
 all of this seems to work fine. Unfortunately the custom field
 exists a second time on the pages, as all custom fields are shown at
 the bottom of the create and modify.html pages - these instances are
 too short to show the data in the field.
 Does anybody know if there's a way to hide a custom field from the
 create or modify.html page. Ive got about five custom fields and
 want to show four in the usual manner.
 

Sounds like you want to use the MassageCustomFields callback in
EditCustomFields to suppress certain fields

-kevin


pgptrhPJnIlyD.pgp
Description: PGP signature

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] RTAddressRegex and ExternalAuth error

2010-05-27 Thread borngunners

 
Sounds like the RT path is not right. Was it working before? Did you
install the ubuntu RT package or got it from bestpractical?

Everything was working right until I decide to configure the LDAP 
authentication... I followed the instructions from best practical and then 
install the CPAN moduleI am not sure if I installed in the wrong path.
What can I do to reverse the installation or better still repair the issue?



 


 

 

-Original Message-
From: Mauricio Tavares raubvo...@gmail.com
To: borngunners borngunn...@aol.com
Cc: RT-Users RT-Users@lists.bestpractical.com
Sent: Thu, May 27, 2010 10:54 am
Subject: Re: [rt-users] RTAddressRegex and ExternalAuth error


On Thu, May 27, 2010 at 10:41 AM,  borngunn...@aol.com wrote:
 I have installed Net::LDAP in cpan and installed all dependencies. I am
 getting the following error messages after restarting apache2 (fails):

 [Wed May 26 18:06:11 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 18:06:23 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 14:06:32 2010] [notice] Apache/2.2.11 (Ubuntu)
 PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
 configured -- resuming normal$
 [Wed May 26 14:43:40 2010] [notice] caught SIGTERM, shutting down
 [Wed May 26 14:43:43 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in
 @INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl
 /u$
 [Wed May 26 14:43:43 2010] [error] Can't load Perl file:
 /opt/rt3/bin/webmux.pl for server UHC:80, exiting...
 [Wed May 26 14:50:22 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in
 @INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl
 /u$
 [Wed May 26 14:50:22 2010] [error] Can't load Perl file:
 /opt/rt3/bin/webmux.pl for server UHC:80, exiting...
 [Wed May 26 18:51:11 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 18:51:22 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 14:51:32 2010] [notice] Apache/2.2.11 (Ubuntu)
 PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
 configured -- resuming normal$
 [Wed May 26 15:01:43 2010] [notice] caught SIGTERM, shutting down
 [Wed May 26 15:01:46 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in
 @INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl
 /u$
 [Wed May 26 15:01:46 2010] [error] Can't load Perl file:
 /opt/rt3/bin/webmux.pl for server UHC:80, exiting...
 [Wed May 26 15:15:41 2010] [error] Can't locate RT/Authen/ExternalAuth.pm in
 @INC (@INC contains: /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl
 /u$
 [Wed May 26 15:15:41 2010] [error] Can't load Perl file:
 /opt/rt3/bin/webmux.pl for server UHC:80, exiting...
 [Wed May 26 19:16:22 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 19:16:34 2010] [error]: The RTAddressRegexp option is not set in
 the config. Not setting this option results in additional SQL queries to
 check $
 [Wed May 26 15:16:43 2010] [notice] Apache/2.2.11 (Ubuntu)
 PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
 configured -- resuming normal$


 I am not sure what I am doing wrong. Please help...

  I would begin with this guy here:

[Wed May 26 15:01:46 2010] [error] Can't locate
RT/Authen/ExternalAuth.pm in @INC (@INC contains:
/opt/rt3/bin/../local/lib /opt/rt3/bin/../lib /etc/perl /u$

Sounds like the RT path is not right. Was it working before? Did you
install the ubuntu RT package or got it from bestpractical?



 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com



 

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

[rt-users] id10t error

2010-05-27 Thread Troy Knabe
So I am looking to upgrade RT from 3.8.7 to 3.8.8 and I cannot find the 
documentation on what options I used to run configure.  Is there a way to tell 
that from my existing version?

--
Thanks!






Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] id10t error

2010-05-27 Thread James Moseley
The config.log file in the RT 3.8.7 source directory.

On Thu, May 27, 2010 at 3:32 PM, Troy Knabe kn...@4j.lane.edu wrote:

 So I am looking to upgrade RT from 3.8.7 to 3.8.8 and I cannot find the
 documentation on what options I used to run configure.  Is there a way to
 tell that from my existing version?

 --
 Thanks!






 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com




-- 
James Moseley
610-934-7307

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com