Re: [rt-users] rt 4.0.5 - Autocomplete field type for external custom field does not work for non root user

2012-03-12 Thread Kevin Falcone
On Mon, Mar 12, 2012 at 06:52:00PM -0400, Jim Lesinski wrote:
>get the branch name to work because it included a forward slash so I used 
> the commit id...
>Maybe someone can chime in?
>This didn't work: git format-patch rt-4.0.5..4.0/context-on-custom-fields 
> --stdout >
>fields.patch
>git format-patch
>
> 94acf9055ccb6a7368d539dcc8f1d2684016e8ef..2b3265a91a4e5e8cdf724ea218ea30fa501f73b2
>  --stdout >
>fields.patch

It's not the forward slash, those are absolutely legal, the problem is
that you had no local copy of the branch.

git checkout 4.0/context-on-custom-fields
git format-patch 4.0-trunk or git format-patch rt-4.0.5
will get you the 4 patches (your --stdout > file.patch would work
too). Although your incant *should* have created the correct set of
files.

After applying the patches, clearing your mason cache and restarting
apache, are you still seeing a warning in the debug logs?

-kevin

>5. Change to the RequestTracker install directory
>cd /opt/rt4
>6. This shows what changes are in the patch:
>git apply --stat /tmp/patch/stable/fields.patch
>7. This allows you to try out the patch:
>git apply --check /tmp/patch/stable/fields.patch
>8. And Finally this applies the patch:
>git apply -v /tmp/patch/stable/fields.patch
>On Mon, Mar 5, 2012 at 12:11 PM, Kevin Falcone 
> <[2]falc...@bestpractical.com> wrote:
> 
>  On Mon, Mar 05, 2012 at 08:58:40AM -0500, Jim Lesinski wrote:
>  > I copied over the changed files from the branch you suggested into
>  > /local/lib/RT/CustomField.pm
>  > /local/lib/RT/Interface/Web.pm
>  > /local/lib/RT/Transaction.pm
>  > Then I cleared the mason cache and restarted apache. I ended up with 
> this error.
> 
>  Unfortunately, 4.0/context-on-custom-fields predates some work we did
>  in 4.0.5, so copying the files will take out code we added later.
>  You really want to apply patches (or do a local merge of that branch)
>  rather than trying to pull full files out of it.
> 
>  Github will show you what changes you'd need to apply here, but I'm
>  not sure how to get it to give you a patch file.
> 
>  
> [3]https://github.com/bestpractical/rt/compare/stable...4.0%2Fcontext-on-custom-fields
> 
>  -kevin
>  > error: Undefined subroutine 
> &HTML::Mason::Commands::MaybeRedirectToApproval called at
>  > /opt/rt4/share/html/Ticket/autohandler line 14.
>  > context: ...
>  > 10: |(?  > 11: $
>  > 12: }ix;
>  > 13:
>  > 14: MaybeRedirectToApproval(
>  > 15: Whitelist => $whitelist,
>  > 16: ARGSRef => \%ARGS,
>  > 17: );
>  > 18:
>  > ...
>  > code stack: /opt/rt4/share/html/Ticket/autohandler:14
>  > /opt/rt4/sbin/../local/lib/RT/Interface/Web.pm:538
>  > /opt/rt4/sbin/../local/lib/RT/Interface/Web.pm:285
>  > /opt/rt4/share/html/autohandler:53
>  >
>  > Have I done something wrong? Must I overwrite these files instead of 
> adding to the local
>  > directory? I did move the files manually into my local copy of 4.0.5 
> but I thought that
>  would
>  > work.
>  > Thanks for the help. I am thinking a work around would be to just 
> assign permissions to
>  the
>  > field. Maybe I should just wait for 4.0.6.
>  > Jim
>  > On Wed, Feb 29, 2012 at 6:29 AM, Ruslan Zakirov 
> <[1][4]r...@bestpractical.com> wrote:
>  >
>  > Hi,
>  >
>  > You need fixes from 4.0/context-on-custom-fields branch.
>  > On Tue, Feb 28, 2012 at 20:32, Jim Lesinski 
> <[2][5]jim.lesin...@gmail.com> wrote:
>  > > I turned on debug (*new to me) and it looks like this is the 
> relevant error
>  > > in the logs:
>  > >
>  > > Feb 28 11:22:11 buf-rtdev RT: Permission denied. User #63 has no
>  > > SeeCustomField right on CF #13
>  > >
>  > > If I assign SeeCustomField directly to the custom field (#13) for 
> RTUser,
>  > > then the autocomplete value works.
>  > >
>  > > Maybe I am missing something here with permissions... Should I be 
> assigning
>  > > group or specific user permissions on a field by field basis? Up 
> until now I
>  > > had only put users in groups and assigned group permissions to 
> queues. I do
>  > > have a couple nested groups as well, but no permissions explicitly 
> defined
>  > > on a per field basis. It seems like it should be working though 
> since it
>  > > does work for other field types, just not autocomplete.
>  > >
>  > >
>  > >
>  > >
>  > >
>  > > On Tue, Feb 28, 2012 at 10:46 AM, Ruslan Zakirov 
> <[3][6]r...@bestpractical.com>
>  > > wrote:
>  > >>
>  > >> Hi,
>  > >>
>  > >> Anything in debug logs when this doesn't work?
>  > >>
>  > >>
>  > >> On Tue, Feb 28, 2012 at 19:38, Jim Lesinski 
> <[4][7]jim.lesin...@gmail.com>
>  > >> wrote:
>  > >> > The user (RTuser) is Privileged.
>  > >> >
>  > >> 

Re: [rt-users] Send a mail to a customer

2012-03-12 Thread Adam Clarke
On 09/03/2012, at 2:30 AM, Ruslan Zakirov wrote:

> On Thu, Mar 8, 2012 at 19:24, Arthur Rance  wrote:
>> Hello,
>> 
>> 
>> Is it possible to send a mail to a customer ? How ? By creating a ticket
>> with the customer as requestor ? as CC ? What would you do ?
> 
> By creating a ticket with the customer as requestor.

We created a template that assists with this task if there is an auto reply on 
the queue since it is often confusing to the customer to get an automated 
response to a ticket that they did not send.

http://requesttracker.wikia.com/wiki/AutoreplyOrCorrespondence




Re: [rt-users] rt 4.0.5 - Autocomplete field type for external custom field does not work for non root user

2012-03-12 Thread Jim Lesinski
Hi All,

I created and applied a patch using rt-4.0.5 (the version I am on) and the
4.0/context-on-custom-fields branch and it does not seem to have fixed the
issue at all. I outlined the steps I used to make a patch just in case that
is incorrect, but I did check the files that were changed and they do have
the additional lines added and removed where I would expect them.

Any other ideas?

Thanks,
Jim



HOW TO MAKE A GIT PATCH (or at least how I made it )

BACK UP YOUR REQUEST TRACKER DIRECTORY

In this example I am making a patch for the rt-4.0.5 tagged version using
the 4.0/context-on-custom-fields branch

1. Change to a directory to work in like /tmp/patch or something
cd /tmp
md patch
cd patch


2. Clone the latest stable version
git clone https://github.com/bestpractical/rt.git -b stable

3. Change to the stable directory
cd stable

4. Make a patch from the two branch names or a tag name and a branch name.
In the case below, I could not
get the branch name to work because it included a forward slash so I used
the commit id... Maybe someone can chime in?
This didn't work: git format-patch rt-4.0.5..4.0/context-on-custom-fields
--stdout > fields.patch

git format-patch
94acf9055ccb6a7368d539dcc8f1d2684016e8ef..2b3265a91a4e5e8cdf724ea218ea30fa501f73b2
--stdout > fields.patch


5. Change to the RequestTracker install directory
cd /opt/rt4

6. This shows what changes are in the patch:
git apply --stat /tmp/patch/stable/fields.patch


7. This allows you to try out the patch:
git apply --check /tmp/patch/stable/fields.patch


8. And Finally this applies the patch:
git apply -v /tmp/patch/stable/fields.patch

On Mon, Mar 5, 2012 at 12:11 PM, Kevin Falcone wrote:

> On Mon, Mar 05, 2012 at 08:58:40AM -0500, Jim Lesinski wrote:
> >I copied over the changed files from the branch you suggested into
> >/local/lib/RT/CustomField.pm
> >/local/lib/RT/Interface/Web.pm
> >/local/lib/RT/Transaction.pm
> >Then I cleared the mason cache and restarted apache. I ended up with
> this error.
>
> Unfortunately, 4.0/context-on-custom-fields predates some work we did
> in 4.0.5, so copying the files will take out code we added later.
> You really want to apply patches (or do a local merge of that branch)
> rather than trying to pull full files out of it.
>
> Github will show you what changes you'd need to apply here, but I'm
> not sure how to get it to give you a patch file.
>
>
> https://github.com/bestpractical/rt/compare/stable...4.0%2Fcontext-on-custom-fields
>
> -kevin
>
> >error:  Undefined subroutine
> &HTML::Mason::Commands::MaybeRedirectToApproval called at
> >/opt/rt4/share/html/Ticket/autohandler line 14.
> >context:...
> >10: |(? >11: $
> >12: }ix;
> >13:
> >14: MaybeRedirectToApproval(
> >15: Whitelist => $whitelist,
> >16: ARGSRef => \%ARGS,
> >17: );
> >18:
> >...
> >code stack: /opt/rt4/share/html/Ticket/autohandler:14
> >/opt/rt4/sbin/../local/lib/RT/Interface/Web.pm:538
> >/opt/rt4/sbin/../local/lib/RT/Interface/Web.pm:285
> >/opt/rt4/share/html/autohandler:53
> >
> >Have I done something wrong? Must I overwrite these files instead of
> adding to the local
> >directory? I did move the files manually into my local copy of 4.0.5
> but I thought that would
> >work.
> >Thanks for the help. I am thinking a work around would be to just
> assign permissions to the
> >field. Maybe I should just wait for 4.0.6.
> >Jim
> >On Wed, Feb 29, 2012 at 6:29 AM, Ruslan Zakirov <[1]
> r...@bestpractical.com> wrote:
> >
> >  Hi,
> >
> >  You need fixes from 4.0/context-on-custom-fields branch.
> >  On Tue, Feb 28, 2012 at 20:32, Jim Lesinski <[2]
> jim.lesin...@gmail.com> wrote:
> >  > I turned on debug (*new to me) and it looks like this is the
> relevant error
> >  > in the logs:
> >  >
> >  > Feb 28 11:22:11 buf-rtdev RT: Permission denied. User #63 has no
> >  > SeeCustomField right on CF #13
> >  >
> >  > If I assign SeeCustomField directly to the custom field (#13) for
> RTUser,
> >  > then the autocomplete value works.
> >  >
> >  > Maybe I am missing something here with permissions... Should I be
> assigning
> >  > group or specific user permissions on a field by field basis? Up
> until now I
> >  > had only put users in groups and assigned group permissions to
> queues. I do
> >  > have a couple nested groups as well, but no permissions
> explicitly defined
> >  > on a per field basis. It seems like it should be working though
> since it
> >  > does work for other field types, just not autocomplete.
> >  >
> >  >
> >  >
> >  >
> >  

Re: [rt-users] Couldn't load user ''

2012-03-12 Thread Thomas Sibley
On 03/12/2012 05:17 PM, Florian Lengyel wrote:
> Since this is a new installation, I'm inclined to start over with 4.0.5.
> I had to piece together some installation notes from around the web
> for 4.0.1 (I'm running rt-server.fcgi with nginx, etc).

We document an nginx config in docs/web_deployment.pod and RT
installation is covered in the README.  What was missing that you
expected documented?


Re: [rt-users] Couldn't load user ''

2012-03-12 Thread Florian Lengyel
On Mon, Mar 12, 2012 at 5:04 PM, Kevin Falcone wrote:

> On Mon, Mar 12, 2012 at 12:10:10PM -0400, Florian Lengyel wrote:
> >RT4.0.1 (under Unbuntu 11.10)
>
> That version of RT contained the bug that trying to create a user with
> a username or email that already exists gave a terrible error message.
>
> This includes Unprivileged or Disabled users, so you may need to go to
> the Users page and use either the Goto User box or the search to find
> the user who already exists.
>
> I assure you they don't exist, even after repeated attempts! My honest
efforts to create Privileged, Enabled users were dashed. I've tried to
search
for the invisible users -- they were invisible because they were never
created.


> I believe that 4.0.2 or higher would give you a better error message
> (As fixed by 24e10893b834a15675a63757219ad03a3a51eb15 ) and some
> related commits.
>
> Since this is a new installation, I'm inclined to start over with 4.0.5.
I had to piece together some installation notes from around the web
for 4.0.1 (I'm running rt-server.fcgi with nginx, etc).


> -kevin
>


Re: [rt-users] Placing Custom Fields into the Subject

2012-03-12 Thread Kevin Falcone
On Mon, Mar 12, 2012 at 05:00:24PM -0400, Chad Osmond wrote:
> >>But I'd like to re-write the subject with some of the information 
> >> contained in the custom fields..
> >>I assume it's a Scrip, On Create, running after our ExtractCF scrip...
> 
> >Yes, it's an On Create with a User Defined action, Prepare would be 1; and 
> >Commit would call $self->TicketObj->SetSubject() passing in the data you 
> >want.
> 
> I've created a scrip in the Global and in the Queue itself to try and get 
> this working...
> 
> So far I have: 
> 
> Description:   " 020 - Set subject based on custom field"
> Condition:On Create
> Action:   User Defined
> Template: Global Template: Blank
> Stage:Transaction Create
> 

This code is for a User Defined condition, you have a User Defined
action, so you need to delete the code from this box

> Custom Condition:
> $RT::Logger->info("Running Scrip #020 Set Subject");
> my $subject = $self->TicketObj->FirstCustomFieldValue('Address');
> my ($status, $msg) = $self->TicketObj->SetSubject($subject) ;
> unless ( $status ) {
> $RT::Logger->error("Couldn't change the subject due to: $msg");
> return 0;
> }
> return 1;
> 
> Custom action prepare code: 
> return 1;


And put it in this box (the cleanup box)

> Custom action cleanup code:
> return 1;
> 
> 
> I set the logging in RT to debug, and I can see the scrip executing after the 
> extraction of custom fields.. (It's #15) but the subject isn't set...

RT will never execute the code in Custom Condition because your
Condition is On Create (which is correct).  RT is executing your
custom action code, which consists only of a true value to indicate
success.

-kevin

>  [info]: CustomFieldValue (Pager, 025 ) added: 237  
> (/opt/rt4/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:213)
>  [debug]: Committing scrip #15 on txn #1451 of ticket #194 
> (/opt/rt4/sbin/../lib/RT/Scrips.pm:192)
>  [debug]: Committing scrip #3 on txn #1451 of ticket #194 
> (/opt/rt4/sbin/../lib/RT/Scrips.pm:192)
>  [debug]: Committing scrip #4 on txn #1451 of ticket #194 
> (/opt/rt4/sbin/../lib/RT/Scrips.pm:192)
>  [debug]: Calling SetRecipientDigests for transaction 
> RT::Transaction=HASH(0x7f1ad539b878), id 1451 
> (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:641)
>  [debug]: Working on mailfield To; recipients are  
> (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:657)
>  [debug]: Subject: [RT #194] test 11


pgpcd76nAP2c6.pgp
Description: PGP signature


Re: [rt-users] Couldn't load user ''

2012-03-12 Thread Kevin Falcone
On Mon, Mar 12, 2012 at 12:10:10PM -0400, Florian Lengyel wrote:
>RT4.0.1 (under Unbuntu 11.10)

That version of RT contained the bug that trying to create a user with
a username or email that already exists gave a terrible error message.

This includes Unprivileged or Disabled users, so you may need to go to
the Users page and use either the Goto User box or the search to find
the user who already exists.

I believe that 4.0.2 or higher would give you a better error message
(As fixed by 24e10893b834a15675a63757219ad03a3a51eb15 ) and some
related commits.

-kevin


pgpLr5yP6vLdE.pgp
Description: PGP signature


Re: [rt-users] Placing Custom Fields into the Subject

2012-03-12 Thread Chad Osmond
>>But I'd like to re-write the subject with some of the information 
>> contained in the custom fields..
>>I assume it's a Scrip, On Create, running after our ExtractCF scrip...

>Yes, it's an On Create with a User Defined action, Prepare would be 1; and 
>Commit would call $self->TicketObj->SetSubject() passing in the data you want.

I've created a scrip in the Global and in the Queue itself to try and get this 
working...

So far I have: 

Description: " 020 - Set subject based on custom field"
Condition:  On Create
Action: User Defined
Template:   Global Template: Blank
Stage:  Transaction Create


Custom Condition:
$RT::Logger->info("Running Scrip #020 Set Subject");
my $subject = $self->TicketObj->FirstCustomFieldValue('Address');
my ($status, $msg) = $self->TicketObj->SetSubject($subject) ;
unless ( $status ) {
$RT::Logger->error("Couldn't change the subject due to: $msg");
return 0;
}
return 1;

Custom action prepare code: 
return 1;

Custom action cleanup code:
return 1;


I set the logging in RT to debug, and I can see the scrip executing after the 
extraction of custom fields.. (It's #15) but the subject isn't set...
...
 [info]: CustomFieldValue (Pager, 025 ) added: 237  
(/opt/rt4/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm:213)
 [debug]: Committing scrip #15 on txn #1451 of ticket #194 
(/opt/rt4/sbin/../lib/RT/Scrips.pm:192)
 [debug]: Committing scrip #3 on txn #1451 of ticket #194 
(/opt/rt4/sbin/../lib/RT/Scrips.pm:192)
 [debug]: Committing scrip #4 on txn #1451 of ticket #194 
(/opt/rt4/sbin/../lib/RT/Scrips.pm:192)
 [debug]: Calling SetRecipientDigests for transaction 
RT::Transaction=HASH(0x7f1ad539b878), id 1451 
(/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:641)
 [debug]: Working on mailfield To; recipients are  
(/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:657)
 [debug]: Subject: [RT #194] test 11


Re: [rt-users] Couldn't load user ''

2012-03-12 Thread Florian Lengyel
On Mon, Mar 12, 2012 at 11:59 AM, Kevin Falcone
wrote:

> On Sun, Mar 11, 2012 at 09:42:29PM -0400, Florian Lengyel wrote:
> >I've searched through the archives and it appears that the answer to
> this problem has not been
> >addressed. Attempts to add a new users whose attributes (username,
> email address) do not
> >conflict with that of any other user can fail.
> >Is there a patch for this bug? It is not a misunderstanding of some
> kind--I've used previous
> >versions of RT and this behavior is indeed anomalous.
>
> Which version of RT, with what extensions installed?  So far this has
> always turned out to be a bug in the error message for early 4.0
> releases or a misconfiguration.
>
> -kevin
>

RT4.0.1 (under Unbuntu 11.10)
I'm not sure how to check which extensions are installed.
I have not installed any of the extensions listed on
http://bestpractical.com/rt/extensions.html
but I don't know if ubuntu installs any. Assuming that extensions
are listed under Admin/Tools/Configuration.html, I do not see
any.

I am using nginx and mysql, incidentally. There are some
minor changes to accomodate this.
Thanks,

FL


Re: [rt-users] TicketObj->Id to string for html

2012-03-12 Thread Len Jaffe
On Mon, Mar 12, 2012 at 11:56 AM, Izz Abdullah wrote:

> Ok, understood.  Short of buying a Mason book, I can rewrite some
> javascript to work out the print, but I am still not able to convert
> TicketObj->id to a string.  Can you assist there please?
>
> -Original Message-
> From: rt-users-boun...@lists.bestpractical.com [mailto:
> rt-users-boun...@lists.bestpractical.com] On Behalf Of Thomas Sibley
> Sent: Monday, March 12, 2012 10:39 AM
> To: rt-users@lists.bestpractical.com
> Subject: Re: [rt-users] TicketObj->Id to string for html
>
> On 03/12/2012 11:11 AM, Izz Abdullah wrote:
> > https://ourRT/Ticket/History.html?id=".$id
> > onClick="window.print();return false">Print Ticket Summary
>
> Mason isn't all Perl.Refer to http://masonbook.com
>
> https://ourRT/Ticket/History.html?id=<% $id %>"
> onClick="window.print();return false">Print Ticket Summary
>
> > This is being displayed on the Display.html page.  I am simply wanting
> > to print, from the Display.html page, the corresponding History.html
> > page.
>
> Your onclick handler "window.print(); return false" is going to open the
> print dialog for the page it's on (i.e. Display.html).
>


As Tom pointed out below:

>  href="https://ourRT/Ticket/History.html?id=
".$id
Is invalid Mason.

When you want to add the value os one of your Perl variables to the output
that you're generating [and that's really the whole point of Mason, isn't
it? ],
you need to use the Mason Tag Syntax and set your access to Perl variables
between a <% %> pair of tag symbols.  So, as Tom also pointed out,  your
code above needs to look like this code:

>  href="https://ourRT/Ticket/History.html?id=<%
$id %>"

As for buying the book, there is a "read it online" link in the box on the
right side, which will take you to an online HTML version of the book that
you can use for reference at  http://masonbook.com/book/

Len.


-- 
lenja...@jaffesystems.com   614-404-4214
Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
Grubmaster: Greenbar  2011, 2010, 2009,
Grub Asst. 2008, Trained 2007.


Re: [rt-users] TicketObj->Id to string for html

2012-03-12 Thread Izz Abdullah
I completely overlooked his example.  Thanks...

-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Monday, March 12, 2012 11:02 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] TicketObj->Id to string for html

On Mon, Mar 12, 2012 at 03:56:46PM +, Izz Abdullah wrote:
> Ok, understood.  Short of buying a Mason book,

You don't have to buy the book, click on "Read it online".
Also, Tom provided an example of the correct syntax.

-kevin

> I can rewrite some javascript to work out the print, but I am still not able 
> to convert TicketObj->id to a string.  Can you assist there please?
> 
> -Original Message-
> From: rt-users-boun...@lists.bestpractical.com 
> [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Thomas 
> Sibley
> Sent: Monday, March 12, 2012 10:39 AM
> To: rt-users@lists.bestpractical.com
> Subject: Re: [rt-users] TicketObj->Id to string for html
> 
> On 03/12/2012 11:11 AM, Izz Abdullah wrote:
> > https://ourRT/Ticket/History.html?id=".$id
> > onClick="window.print();return false">Print Ticket Summary
> 
> Mason isn't all Perl.   Mason.  Refer to http://masonbook.com
> 
> https://ourRT/Ticket/History.html?id=<% $id %>"
> onClick="window.print();return false">Print Ticket Summary
> 
> > This is being displayed on the Display.html page.  I am simply 
> > wanting to print, from the Display.html page, the corresponding 
> > History.html page.
> 
> Your onclick handler "window.print(); return false" is going to open the 
> print dialog for the page it's on (i.e. Display.html).


Re: [rt-users] TicketObj->Id to string for html

2012-03-12 Thread Kevin Falcone
On Mon, Mar 12, 2012 at 03:56:46PM +, Izz Abdullah wrote:
> Ok, understood.  Short of buying a Mason book, 

You don't have to buy the book, click on "Read it online".
Also, Tom provided an example of the correct syntax.

-kevin

> I can rewrite some javascript to work out the print, but I am still not able 
> to convert TicketObj->id to a string.  Can you assist there please?
> 
> -Original Message-
> From: rt-users-boun...@lists.bestpractical.com 
> [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Thomas Sibley
> Sent: Monday, March 12, 2012 10:39 AM
> To: rt-users@lists.bestpractical.com
> Subject: Re: [rt-users] TicketObj->Id to string for html
> 
> On 03/12/2012 11:11 AM, Izz Abdullah wrote:
> > https://ourRT/Ticket/History.html?id=".$id
> > onClick="window.print();return false">Print Ticket Summary
> 
> Mason isn't all Perl.   Refer to http://masonbook.com
> 
> https://ourRT/Ticket/History.html?id=<% $id %>"
> onClick="window.print();return false">Print Ticket Summary
> 
> > This is being displayed on the Display.html page.  I am simply wanting 
> > to print, from the Display.html page, the corresponding History.html 
> > page.
> 
> Your onclick handler "window.print(); return false" is going to open the 
> print dialog for the page it's on (i.e. Display.html).


pgpDyOdL9DesI.pgp
Description: PGP signature


Re: [rt-users] Couldn't load user ''

2012-03-12 Thread Kevin Falcone
On Sun, Mar 11, 2012 at 09:42:29PM -0400, Florian Lengyel wrote:
>I've searched through the archives and it appears that the answer to this 
> problem has not been
>addressed. Attempts to add a new users whose attributes (username, email 
> address) do not
>conflict with that of any other user can fail.
>Is there a patch for this bug? It is not a misunderstanding of some 
> kind--I've used previous
>versions of RT and this behavior is indeed anomalous.

Which version of RT, with what extensions installed?  So far this has
always turned out to be a bug in the error message for early 4.0
releases or a misconfiguration.

-kevin


pgpA3Gh4TZ5cp.pgp
Description: PGP signature


Re: [rt-users] TicketObj->Id to string for html

2012-03-12 Thread Izz Abdullah
Ok, understood.  Short of buying a Mason book, I can rewrite some javascript to 
work out the print, but I am still not able to convert TicketObj->id to a 
string.  Can you assist there please?

-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Thomas Sibley
Sent: Monday, March 12, 2012 10:39 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] TicketObj->Id to string for html

On 03/12/2012 11:11 AM, Izz Abdullah wrote:
> https://ourRT/Ticket/History.html?id=".$id
> onClick="window.print();return false">Print Ticket Summary

Mason isn't all Perl.  http://masonbook.com

https://ourRT/Ticket/History.html?id=<% $id %>"
onClick="window.print();return false">Print Ticket Summary

> This is being displayed on the Display.html page.  I am simply wanting 
> to print, from the Display.html page, the corresponding History.html 
> page.

Your onclick handler "window.print(); return false" is going to open the print 
dialog for the page it's on (i.e. Display.html).


Re: [rt-users] TicketObj->Id to string for html

2012-03-12 Thread Thomas Sibley
On 03/12/2012 11:11 AM, Izz Abdullah wrote:
> https://ourRT/Ticket/History.html?id=".$id
> onClick="window.print();return false">Print Ticket Summary

Mason isn't all Perl.  http://masonbook.com

https://ourRT/Ticket/History.html?id=<% $id %>"
onClick="window.print();return false">Print Ticket Summary

> This is being displayed on the Display.html page.  I am simply
> wanting to print, from the Display.html page, the corresponding
> History.html page.

Your onclick handler "window.print(); return false" is going to open the
print dialog for the page it's on (i.e. Display.html).


Re: [rt-users] TicketObj->Id to string for html

2012-03-12 Thread Izz Abdullah
https://ourRT/Ticket/History.html?id=".$id 
onClick="window.print();return false">Print Ticket Summary
This is being displayed on the Display.html page.  I am simply wanting to 
print, from the Display.html page, the corresponding History.html page.

Above this I had set $id = $TicketObj->id;
This does not play well in the print dialog, nothing is passed into the $id (at 
least as a string).

-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Thomas Sibley
Sent: Monday, March 12, 2012 10:08 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] TicketObj->Id to string for html

On 03/12/2012 10:56 AM, Izz Abdullah wrote:
> I’m trying to grab just the current ticket ID, for a print button 
> above the ticket summary on the Display.html screen.  I want this so 
> that when the user clicks on the print button, it actually prints
> 
> /History.html?id=.
> 
> Either my Google is broken because I am not finding how to extract the 
> last 5 characters of the URL, and / or I am having trouble putting the 
> value of $TicketObj->Id as a string value.  This is not a scrip, but 
> rather a Callback.  Any help is greatly appreciated.

You should really show what you're trying, since otherwise no one can point to 
where you've gone wrong.

I suspect you just want <% $TicketObj->Id %>


Re: [rt-users] TicketObj->Id to string for html

2012-03-12 Thread Thomas Sibley
On 03/12/2012 10:56 AM, Izz Abdullah wrote:
> I’m trying to grab just the current ticket ID, for a print button above
> the ticket summary on the Display.html screen.  I want this so that when
> the user clicks on the print button, it actually prints
> 
> /History.html?id=.
> 
> Either my Google is broken because I am not finding how to extract the
> last 5 characters of the URL, and / or I am having trouble putting the
> value of $TicketObj->Id as a string value.  This is not a scrip, but
> rather a Callback.  Any help is greatly appreciated.

You should really show what you're trying, since otherwise no one can
point to where you've gone wrong.

I suspect you just want <% $TicketObj->Id %>


Re: [rt-users] TicketObj->Id to string for html

2012-03-12 Thread Izz Abdullah
Sorry: RT 4.0.2

From: Izz Abdullah
Sent: Monday, March 12, 2012 9:57 AM
To: rt-users@lists.bestpractical.com
Subject: TicketObj->Id to string for html

I'm trying to grab just the current ticket ID, for a print button above the 
ticket summary on the Display.html screen.  I want this so that when the user 
clicks on the print button, it actually prints
/History.html?id=.

Either my Google is broken because I am not finding how to extract the last 5 
characters of the URL, and / or I am having trouble putting the value of 
$TicketObj->Id as a string value.  This is not a scrip, but rather a Callback.  
Any help is greatly appreciated.

Sincerely,
Izz

Izz Abdullah
Network Administrator
Hibbett Sporting Goods



[rt-users] TicketObj->Id to string for html

2012-03-12 Thread Izz Abdullah
I'm trying to grab just the current ticket ID, for a print button above the 
ticket summary on the Display.html screen.  I want this so that when the user 
clicks on the print button, it actually prints
/History.html?id=.

Either my Google is broken because I am not finding how to extract the last 5 
characters of the URL, and / or I am having trouble putting the value of 
$TicketObj->Id as a string value.  This is not a scrip, but rather a Callback.  
Any help is greatly appreciated.

Sincerely,
Izz

Izz Abdullah
Network Administrator
Hibbett Sporting Goods




Re: [rt-users] SelfService + Hide staff reply real name = ?

2012-03-12 Thread Ruslan Zakirov
On Mon, Mar 12, 2012 at 14:19, Arthur Rance  wrote:
> Hello,
>
>
> When I read a ticket through the self-service, I can see the real name of
> the guy who replies. Is it possible to hide it ?

By adjusting ShowUser component that is used to display user entries
in the web interface.

By adjusting ShowHistory component and sub-components.


-- 
Best regards, Ruslan.


[rt-users] SelfService + Hide staff reply real name = ?

2012-03-12 Thread Arthur Rance

Hello,

When I read a ticket through the self-service, I can see the real name of the 
guy who replies. Is it possible to hide it ?


  

Re: [rt-users] Extension not able to install due to perl error

2012-03-12 Thread nickyflavier

Hi everyone, I am trying to install RT-Extension-MandatoryFields-0.5  ,
however it requires me to upgrade my perl version 5.8.8. So I went to this
website and followed this guide http://blog.tuxforge.com/centos-5-perl-5-10/  

I have successfully upgraded to 5.14.2 , typing this command "perl
--version" returns below:

This is perl 5, version 14, subversion 2 (v5.14.2) built for
i686-linux-thread-multi

So I went back to try and install RT-Extension-MandatoryFields-0.5 by typing
"perl Makefile.PL" but it returns an error below:

Cannot find the location of RT.pm that defines $RT::LocalPath in: etc etc


It is asking me the Path to directory containing your RT.pm:  
I have tried all the locations, /opt/rt4/, /opt/rt4 , /opt/rt4/lib/ ,
/opt/rt3/ , /usr/src/rt-4.0.5 , etc.

But for some reason it is not accepting the path. I even tried setting the
variable RTHOME to /opt/rt4/
But still it is not able to find the RT.pm

My suspect is perl is not upgraded properly. But I did not receive any
errors during the upgrade.

Anyone had any idea, please shed some light?

Thank you in advance.
-- 
View this message in context: 
http://old.nabble.com/Re%3A-Extension-not-able-to-install-due-to-perl-error-tp33485022p33485022.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.