Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Encoded links for customer user address book.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosfrodriguez authored and balazj committed Feb 28, 2020
1 parent 563f49b commit 2576830
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions Kernel/Modules/AgentCustomerUserAddressBook.pm
Original file line number Diff line number Diff line change
Expand Up @@ -416,33 +416,38 @@ sub Run {
$Self->{Filter} = $ParamObject->GetParam( Param => 'Filter' ) || '';
$Self->{View} = $ParamObject->GetParam( Param => 'View' ) || '';

my $LinkPage = 'RecipientField=' . $Self->{RecipientField}
. ';RecipientFieldLabel=' . $Self->{RecipientFieldLabel}
. ';RecipientType=' . $Self->{RecipientType}
my %LinkEncoded;
for my $Attribute (qw(RecipientField RecipientFieldLabel RecipientType Profile)) {
$LinkEncoded{$Attribute} = $LayoutObject->LinkEncode( $Self->{$Attribute} );
}

my $LinkPage = 'RecipientField=' . $LinkEncoded{RecipientField}
. ';RecipientFieldLabel=' . $LinkEncoded{RecipientFieldLabel}
. ';RecipientType=' . $LinkEncoded{RecipientType}
. ';Filter=' . $LayoutObject->Ascii2Html( Text => $Self->{Filter} )
. ';View=' . $LayoutObject->Ascii2Html( Text => $Self->{View} )
. ';SortBy=' . $LayoutObject->Ascii2Html( Text => $Self->{SortBy} )
. ';OrderBy=' . $LayoutObject->Ascii2Html( Text => $Self->{OrderBy} )
. ';Profile=' . $Self->{Profile}
. ';Profile=' . $LinkEncoded{Profile}
. ';TakeLastSearch=1;Subaction=Search'
. ';';
my $LinkSort = 'RecipientField=' . $Self->{RecipientField}
. ';RecipientFieldLabel=' . $Self->{RecipientFieldLabel}
. ';RecipientType=' . $Self->{RecipientType}
my $LinkSort = 'RecipientField=' . $LinkEncoded{RecipientField}
. ';RecipientFieldLabel=' . $LinkEncoded{RecipientFieldLabel}
. ';RecipientType=' . $LinkEncoded{RecipientType}
. ';Filter=' . $LayoutObject->Ascii2Html( Text => $Self->{Filter} )
. ';View=' . $LayoutObject->Ascii2Html( Text => $Self->{View} )
. ';Profile=' . $Self->{Profile}
. ';Profile=' . $LinkEncoded{Profile}
. ';TakeLastSearch=1;Subaction=Search'
. ';';
my $LinkFilter = 'RecipientField=' . $Self->{RecipientField}
. ';RecipientFieldLabel=' . $Self->{RecipientFieldLabel}
. ';RecipientType=' . $Self->{RecipientType}
my $LinkFilter = 'RecipientField=' . $LinkEncoded{RecipientField}
. ';RecipientFieldLabel=' . $LinkEncoded{RecipientFieldLabel}
. ';RecipientType=' . $LinkEncoded{RecipientType}
. ';Profile=' . $LayoutObject->Ascii2Html( Text => $Self->{Profile} )
. ';TakeLastSearch=1;Subaction=Search'
. ';';
my $LinkBack = 'RecipientField=' . $Self->{RecipientField}
. ';RecipientFieldLabel=' . $Self->{RecipientFieldLabel}
. ';RecipientType=' . $Self->{RecipientType}
my $LinkBack = 'RecipientField=' . $LinkEncoded{RecipientField}
. ';RecipientFieldLabel=' . $LinkEncoded{RecipientFieldLabel}
. ';RecipientType=' . $LinkEncoded{RecipientType}
. ';Profile=' . $LayoutObject->Ascii2Html( Text => $Self->{Profile} )
. ';TakeLastSearch=1;Subaction=LoadProfile'
. ';';
Expand Down

0 comments on commit 2576830

Please sign in to comment.