Customization in the small ticket overview view

Moderator: crythias

Locked
gciotola
Znuny newbie
Posts: 6
Joined: 12 Sep 2011, 17:35
Znuny Version: 3.1 / 3.0
Real Name: Giampiero
Company: AtoS
Location: Italy / Rome
Contact:

Customization in the small ticket overview view

Post by gciotola »

Hi to all,
in my customization I've added four new colums in the DB Table "Customer_User" and i'm able to modify it from the Interface and show the new colums in all the places that i need.
But i'm unable to customize customize the small ticket view adding two of the new colums that i've added.
I Know that I've to modify the DTL file for show the new colums but I don't know how to modify the "TicketOverviewSmall.pm" for figure out how to reference the new fields.

Code: Select all

# customer info (customer name)
        if ( $Param{Config}->{CustomerInfo} ) {
            if ( $Article{CustomerUserID} ) {
                $Article{CustomerName} = $Self->{CustomerUserObject}->CustomerName(
                    UserLogin => $Article{CustomerUserID},
                );
            }
        }

EDIT For :

I've changed the CustomerInfo Section as below for use the CustomerUserDataGet function, but i'm still not enable to retrive the new colums.

Code: Select all

# customer info (customer name)
        if ( $Param{Config}->{CustomerInfo} ) {
            if ( $Article{CustomerUserID} ) {
                 $Article{CustomerUserID} = $Self->{CustomerUserObject}->[b]CustomerUserDataGet[/b](
                    UserLogin => $Article{CustomerUserID},
                );
            }
        }
Is there a way for know the CustomerUserDataGet () output ?
For example, if i need to show the UserCity, the mod in the .dtl file doesn't work:


TicketOverviewSmall.dtl

Code: Select all

<span title="$QData{"CustomerUserCity"}">$QData{"CustomerUserCity","15"}</span> 
OTRS 3.1 / 3.0 - ITSM, FAQ, Survey, Kix, MasterSlave
OS: Ubuntu 11 / Ubuntu 12 / CentOS 6
DB: MySql 5.1, MS SqlServer
User : Jasper CAS / LDAP
Integration with : Alfresco, OpenNMS, Nagios, CMDBuild
Locked