[gelöst] Ticket-Historie um Feld "E-Mail" ergänzen

Allgemein Fragen, deutsche News, Ankündigungen & Events zu Znuny
Locked
joel
Znuny newbie
Posts: 52
Joined: 27 Jan 2011, 15:08
Znuny Version: 3.3.9

[gelöst] Ticket-Historie um Feld "E-Mail" ergänzen

Post by joel »

Hallo,
ich möchte die Ticket-Historie um ein Feld E-Mail ergänzen - in dem Feld soll immer die E-Mail Adresse des Benutzers angezeigt werden der in der gleichen Spalte unter "Benutzer" steht.
An dem Screenshot könnt ihr erkennen was ich meine.

Image


Ich habe bereits das Feld "E-Mail" hinzugefügt, dies ist an folgender Stelle geschehen:
opt/otrs/Kernel/Output/HTML/Standard # vi AgentTicketHistory.dtl
hier wurde einfach folgende Zeile hinzugefügt:
<th>$Text{"email"}</th>
jedoch ist das Feld E-Mail leer und wird nicht durch die Benutzer E-Mail gefüllt.
Last edited by joel on 12 Feb 2014, 14:10, edited 1 time in total.
Produktiv: OTRS: 3.3.10
SLES 11
postgresql
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Ticket-Historie um Feld "E-Mail" ergänzen

Post by reneeb »

Zusätzlich zum Spaltentitel musst Du auch noch die entsprechende Zelle einfügen:

Code: Select all

                            <td>
                                $QData{"UserEmail"}
                            </td>
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
joel
Znuny newbie
Posts: 52
Joined: 27 Jan 2011, 15:08
Znuny Version: 3.3.9

Re: Ticket-Historie um Feld "E-Mail" ergänzen

Post by joel »

Hallo und Danke - funktioniert einwandfrei!

Für alle die es interessiert:

Code: Select all

# --
# AgentTicketHistory.dtl - provides HTML form for history
# Copyright (C) 2001-2010 xxx, http://otrs.org/
# --
# $Id: AgentTicketHistory.dtl,v 1.24 2010/10/06 13:54:30 mg Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

<div class="LayoutPopup ARIARoleMain">

    <div class="Header">
        <h1>
            $Text{"History of"} $Config{"Ticket::Hook"}: $QData{"TicketNumber"} - $QData{"Title","60"}
        </h1>
        <p>
            <a href="#" class="CancelClosePopup">$Text{"Cancel & close window"}</a>
        </p>
    </div>

    <div class="Content">
        <div class="WidgetSimple">
            <div class="Header">
                <h2>
                    $Text{"History Content"}
                </h2>
            </div>
            <div class="Content">
                <table class="DataTable">
                    <thead>
                        <tr>
                            <th>$Text{"Action"}</th>
                            <th>$Text{"Comment"}</th>
                            <th>$Text{"Zoom"}</th>
                            <th>$Text{"User"}</th>
                            <th>$Text{"Createtime"}</th>
		            <th>$Text{"email"}</th>
                        </tr>
                    </thead>
                    <tbody>

<!-- dtl:block:Row -->
                        <tr>
                            <td>
                                $QData{"HistoryType"}
                            </td>
                            <td>
                                $QData{"Name","100"}
                            </td>
                            <td>
<!-- dtl:block:NoLinkZoom -->
                                -
<!-- dtl:block:NoLinkZoom -->
<!-- dtl:block:ShowLinkZoom -->
                                <a class="LinkZoomView AsBlock" href="$Env{"Baselink"}Action=AgentTicketZoom;TicketID=$LQData{"TicketID"};ArticleID=$LQData{"ArticleID"}">$Text{"Zoom view"}</a>
<!-- dtl:block:ShowLinkZoom -->
                            </td>
                            <td>
                                $QData{"UserLogin"} ($Quote{"$Data{"UserFirstname"} $Data{"UserLastname"}","20"})
                            </td>
                            <td>
                                $TimeLong{"$Data{"CreateTime"}"}
                            </td>
		            <td>
                             $QData{"UserEmail"}
                             </td>
                 </tr>
<!-- dtl:block:Row -->

                    </tbody>
                </table>
            </div>
        </div>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
    $('a.LinkZoomView').bind('click', function () {
        window.opener.Core.UI.Popup.FirePopupEvent('URL', { URL: $(this).attr('href')});
        window.close();
Produktiv: OTRS: 3.3.10
SLES 11
postgresql
Locked