Joop wrote:

> Jeffrey Pilant wrote:
> > Could this be a customization of the old system?  If so, what files would 
> > exist
> > to hold the customization?  [I know there is an overload mechanism, and 
> > maybe some
> > config stuff, but I don't recall the details.]  If I could locate the old 
> > file set
> > and look at those files, maybe it will give me an idea to try.
>
> Possible but it could be hidden or it could be obvious.
> If its done well than the customisation should be done in the
> /opt/rt4/local/ tree and it would survive updates. Now its probably not
> a plugin so you could skip looking at the plugins folder but you never
> know. Do you run plugins?
> Anything in the 'lib' or 'html' folder may overrule the same file from
> /opt/rt4/{lib|html} and anything in the callback folder can add/overrule
> parts or anything using the callback mechanism built into RT
> So is anything in it in the old system?
> If it isn't done nicely then things get tricky. Source files can be
> altered directly and finding them could involve getting a diff between
> whats installed now and how a pristine installed tree looks like.
> Looking at modified dates might also be a way to find diffs.
>
> Lets see how far we get this time :-)
>
> Joop

I think I have some customized old system files.  I don't have any .../local 
file
Overrides in the 3.8.4 system.  But based on your info, I found the file
        Ticket/Elements/ShowSummary
Which looked to be customized (or at least it shows the text "Custom Fields".

Comparing the two, it is clear that the 4.2.10 version does not have these 
Fields as part of the file.  Below is a DOS diff, showing the differences of 
between the files.  Can you tell me what file(s) I need to create to make a 
local override in the new system, and what you suggest for the contents?  The 
new system is a clean install, so the files should be default values.  Also, 
what other files do I need to look at for these custom fields?  I.e., ticked 
edit, self-service, others....

Thanks

/jeff

Files:
  /usr/share/request-tracker3.8/html/Ticket/Elements/ShowSummary
  /opt/rt4/share/html/Ticket/Elements/ShowSummary

Comparing files ShowSummary-3.8.4.txt and SHOWSUMMARY-4.2.10.TXT
***** ShowSummary-3.8.4.txt
        <td valign="top" class="boxcontainer">
          <&| /Widgets/TitleBox, title => loc('The Basics'),
                title_href => 
RT->Config->Get('WebPath')."/Ticket/Modify.html?id=".$Ticket->Id,
                class => 'ticket-info-basics' &>
                <& /Ticket/Elements/ShowBasics, Ticket => $Ticket &>
          </&>
% if ($Ticket->CustomFields->First) {
          <&| /Widgets/TitleBox, title => loc('Custom Fields'),
                title_href => 
RT->Config->Get('WebPath')."/Ticket/Modify.html?id=".$Ticket->Id,
                class => 'ticket-info-cfs'  &>
                <& /Ticket/Elements/ShowCustomFields, Ticket => $Ticket &>
          </&>
% }
          <&| /Widgets/TitleBox, title => loc('People'),
                title_href => 
RT->Config->Get('WebPath')."/Ticket/ModifyPeople.html?id=".$Ticket->Id,
                class => 'ticket-info-people' &>
            <& /Ticket/Elements/ShowPeople, Ticket => $Ticket &>
          </&>
      <& /Ticket/Elements/ShowAttachments, Ticket => $Ticket, Attachments => 
$Attachments &>
          <& /Ticket/Elements/ShowRequestor, Ticket => $Ticket &>
***** SHOWSUMMARY-4.2.10.TXT
  <td valign="top" class="boxcontainer">
% $m->callback( %ARGS, CallbackName => 'LeftColumnTop' );
    <&| /Widgets/TitleBox, title => loc('The Basics'),
        (($can_modify || $can_modify_cf) ? (title_href => 
RT->Config->Get('WebPath')."/Ticket/Modify.html?id=".$Ticket->Id) : (
)),
        class => 'ticket-info-basics',
    &><& /Ticket/Elements/ShowBasics, Ticket => $Ticket &></&>
    <& /Elements/ShowCustomFieldCustomGroupings,
        Object       => $Ticket,
        title_href   => ($can_modify || $can_modify_cf) ? 
RT->Config->Get('WebPath')."/Ticket/Modify.html" : "",
        &>
    <&| /Widgets/TitleBox, title => loc('People'),
        (($can_modify || $can_modify_owner || $can_modify_people) ? (title_href 
=> RT->Config->Get('WebPath')."/Ticket/ModifyPe
ople.html?id=".$Ticket->Id) : ()),
        class => 'ticket-info-people',
    &><& /Ticket/Elements/ShowPeople, Ticket => $Ticket &></&>
    <& /Ticket/Elements/ShowAttachments, Ticket => $Ticket, Attachments => 
$Attachments &>
% $m->callback( %ARGS, CallbackName => 'AfterAttachments' );
    <& /Ticket/Elements/ShowRequestor, Ticket => $Ticket &>
*****

***** ShowSummary-3.8.4.txt
        <td valign="top" class="boxcontainer">
% if ( RT->Config->Get('EnableReminders') ) {
***** SHOWSUMMARY-4.2.10.TXT
  <td valign="top" class="boxcontainer">
% $m->callback( %ARGS, CallbackName => 'RightColumnTop' );
% if ( RT->Config->Get('EnableReminders') ) {
*****

***** ShowSummary-3.8.4.txt
                title_href => 
RT->Config->Get('WebPath')."/Ticket/Reminders.html?id=".$Ticket->Id,
                class => 'ticket-info-reminders' &>
        <table>
        <tr>
        <td>
            <form action="<%RT->Config->Get('WebPath')%>/Ticket/Display.html" 
method="post">
              <& /Ticket/Elements/Reminders, Ticket => $Ticket, ShowCompleted 
=> 0 &>
              <div align="right"><input type="submit" class="button" 
value="<&|/l&>Save</&>" /></div>
            </form>
            </td>
            </tr>
            </table>
          </&>
***** SHOWSUMMARY-4.2.10.TXT
        title_href => 
RT->Config->Get('WebPath')."/Ticket/Reminders.html?id=".$Ticket->Id,
        class => 'ticket-info-reminders',
    &>
        <table><tr><td>
            <form action="<%RT->Config->Get('WebPath')%>/Ticket/Display.html" 
name="UpdateReminders" id="UpdateReminders" method="post">
                <& /Ticket/Elements/Reminders, Ticket => $Ticket, ShowCompleted 
=> 0 &>
            </form>
        </td></tr></table>
    </&>
*****

***** ShowSummary-3.8.4.txt
          <&| /Widgets/TitleBox, title => loc("Dates"),
                title_href => 
RT->Config->Get('WebPath')."/Ticket/ModifyDates.html?id=".$Ticket->Id,
                class => 'ticket-info-dates' &>
          <& /Ticket/Elements/ShowDates, Ticket => $Ticket &>
          </&>
% my (@extra);
***** SHOWSUMMARY-4.2.10.TXT
    <&| /Widgets/TitleBox, title => loc("Dates"),
        ($can_modify ? (title_href => 
RT->Config->Get('WebPath')."/Ticket/ModifyDates.html?id=".$Ticket->Id) : ()),
        class => 'ticket-info-dates',
    &><& /Ticket/Elements/ShowDates, Ticket => $Ticket &></&>
% my (@extra);
*****

***** ShowSummary-3.8.4.txt
'Graph').'</a>' unless RT->Config->Get('DisableGraphViz');
          <&| /Widgets/TitleBox, title => loc('Links'),
                title_href => 
RT->Config->Get('WebPath')."/Ticket/ModifyLinks.html?id=".$Ticket->Id,
                class => 'ticket-info-links', @extra &>
                <& /Elements/ShowLinks, Ticket => $Ticket &>
          </&>
% $m->callback( %ARGS, CallbackName => 'RightColumn' );
***** SHOWSUMMARY-4.2.10.TXT
'Graph').'</a>' unless RT->Config->Get('DisableGraphViz');
% $m->callback( %ARGS, CallbackName => 'LinksExtra', extra => \@extra );
    <&| /Widgets/TitleBox, title => loc('Links'),
        ($can_modify ? (title_href => 
RT->Config->Get('WebPath')."/Ticket/ModifyLinks.html?id=".$Ticket->Id) : ()),
        class => 'ticket-info-links',
        @extra,
    &><& /Elements/ShowLinks, Object => $Ticket &></&>
% $m->callback( %ARGS, CallbackName => 'RightColumn' );
*****

***** ShowSummary-3.8.4.txt
***** SHOWSUMMARY-4.2.10.TXT
<%INIT>
my $can_modify = $Ticket->CurrentUserHasRight('ModifyTicket');
my $can_modify_cf = $Ticket->CurrentUserHasRight('ModifyCustomField');
my $can_modify_owner = $Ticket->CurrentUserCanSetOwner();
my $can_modify_people = $Ticket->CurrentUserHasRight('Watch')
                     || $Ticket->CurrentUserHasRight('WatchAsAdminCc');
</%INIT>
*****




________________________________________________________________________
The information contained in this e-mail is for the exclusive use of the 
intended recipient(s) and may be confidential, proprietary, and/or 
legally privileged.  Inadvertent disclosure of this message does not 
constitute a waiver of any privilege.  If you receive this message in 
error, please do not directly or indirectly use, print, copy, forward,
or disclose any part of this message.  Please also delete this e-mail 
and all copies and notify the sender.  Thank you. 

For alternate languages please go to http://bayerdisclaimer.bayerweb.com
________________________________________________________________________
---------
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

Reply via email to