[rt-users] 3.8.1 Missing tabs and modifying create.html

G.Booth G.Booth at lboro.ac.uk
Thu Mar 19 10:41:57 EDT 2009




Hi All(first time mailer, please be gentle :-])


Ive upgraded a test box from 3.6.5 to 3.8.1 (running a 
relatively old kernel for fedora core 
- 2.6.26.8-57.fc8) and have hit an odd problem with the 
menu tabs for Preferences. All other tabs appear 
correctly.
/User/Prefs.html has

<& /Elements/Header, Title=>loc("Preferences") &>
<& /User/Elements/Tabs,
    current_tab => 'User/Prefs.html',
    Title=>loc("Preferences") &>

the tabs file exists yet is being ignored - this isnt a 
local version of the Prefs file.
Take another eg Tools

<& /Elements/Header, Title => loc("Tools") &>
<& Elements/Tabs,
    current_tab => "Tools/index.html",
    Title => loc("Tools") &>

and all is well

the only difference is the line after these

<& /Elements/ListMenu, items => $tabs &>

Prefs is different

<& /Elements/ListActions, actions => \@results &>

but Im sure this is a red herring


Im logged in as an RT Administrator so Im fairly sure its 
not a permissions thing and I can modify the path to cause 
the system to barf if it cant find the tabs file. It just 
seems to ignore it.



My second question is more of a development one regarding 
Create.html, specifiaclly in Self Service.
In order to get the same name everytime through the self 
service interface I want to modify the requestor field so 
it doesnt allow change (e.g. is no longer an INPUT box). 
This way the user is locked and always 
$session{CurrentUser}->EmailAddress.

This is the snip of code Im trying to replace in 
SelfService/Create.html

<tr>
<td class="label">
<&|/l&>Requestors</&>:
</td>
<td class="value">
<& /Elements/EmailInput, Name => 'Requestors', Size => 
'20', Default => $session{CurrentUser}->EmailAddress &>
</td>
</tr>
<tr>

Closest I ve got is to turn both it and the cc field into 
unchangable text, but I cant seem to get just the 
requestor field.
Was hoping there was an easy way to do this, preferably 
without having to drastically modify Create and 
EmailInput.

Like I said any thoughts gratefully received



Regards


garry

-- 

Dr Garry Booth
IT Services
Loughborough University



More information about the rt-users mailing list