~ubuntu-branches/debian/experimental/otrs2/experimental

« back to all changes in this revision

Viewing changes to Kernel/Modules/AgentTicketActionCommon.pm

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2012-08-22 18:00:51 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20120822180051-by6plokxiowzgt08
Tags: 3.1.9+dfsg1-1
* New upstream release.
* Fix typo in the changelog of my 3.1.7+dfsg1-3 upload.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Kernel/Modules/AgentTicketActionCommon.pm - common file for several modules
3
3
# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
4
4
# --
5
 
# $Id: AgentTicketActionCommon.pm,v 1.81.2.6 2012/06/29 21:07:15 cr Exp $
 
5
# $Id: AgentTicketActionCommon.pm,v 1.81.2.7 2012/08/15 09:55:11 te Exp $
6
6
# --
7
7
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
8
8
# the enclosed file COPYING for license information (AGPL). If you
1199
1199
        # get old owner
1200
1200
        my @OldUserInfo = $Self->{TicketObject}->TicketOwnerList( TicketID => $Self->{TicketID} );
1201
1201
        $Param{OwnerStrg} = $Self->{LayoutObject}->BuildSelection(
1202
 
            Data       => \%ShownUsers,
1203
 
            SelectedID => $Param{NewOwnerID},
1204
 
            Name       => 'NewOwnerID',
1205
 
            Class      => $Param{NewOwnerInvalid} || ' ',
1206
 
            Size       => 1,
1207
 
 
 
1202
            Data         => \%ShownUsers,
 
1203
            SelectedID   => $Param{NewOwnerID},
 
1204
            Name         => 'NewOwnerID',
 
1205
            Class        => $Param{NewOwnerInvalid} || ' ',
 
1206
            Size         => 1,
 
1207
            PossibleNone => 1,
1208
1208
        );
1209
1209
        my %UserHash;
1210
1210
        if (@OldUserInfo) {
1216
1216
                $Counter++;
1217
1217
            }
1218
1218
        }
1219
 
        if ( !%UserHash ) {
1220
 
            $UserHash{''} = '-';
1221
 
        }
1222
1219
        my $OldOwnerSelectedID = '';
1223
1220
        if ( $Param{OldOwnerID} ) {
1224
1221
            $OldOwnerSelectedID = $Param{OldOwnerID};
1229
1226
 
1230
1227
        # build string
1231
1228
        $Param{OldOwnerStrg} = $Self->{LayoutObject}->BuildSelection(
1232
 
            Data       => \%UserHash,
1233
 
            SelectedID => $OldOwnerSelectedID,
1234
 
            Name       => 'OldOwnerID',
1235
 
            Class      => $Param{OldOwnerInvalid} || ' ',
1236
 
 
 
1229
            Data         => \%UserHash,
 
1230
            SelectedID   => $OldOwnerSelectedID,
 
1231
            Name         => 'OldOwnerID',
 
1232
            Class        => $Param{OldOwnerInvalid} || ' ',
 
1233
            PossibleNone => 1,
1237
1234
        );
1238
1235
        if ( $Param{NewOwnerType} && $Param{NewOwnerType} eq 'Old' ) {
1239
1236
            $Param{'NewOwnerType::Old'} = 'checked = "checked"';