Lines 208-220
sub _url_with_get_params {
Link Here
|
208 |
C4::Context->preference('staffClientBaseURL'); |
208 |
C4::Context->preference('staffClientBaseURL'); |
209 |
|
209 |
|
210 |
my $uri_params_part = ''; |
210 |
my $uri_params_part = ''; |
211 |
foreach ( $query->url_param() ) { |
211 |
foreach my $param ( $query->url_param() ) { |
212 |
# url_param() always returns parameters that were deleted by delete() |
212 |
# url_param() always returns parameters that were deleted by delete() |
213 |
# This additional check ensure that parameter was not deleted. |
213 |
# This additional check ensure that parameter was not deleted. |
214 |
if ($query->param($_)) { |
214 |
my $uriPiece = $query->param($param); |
|
|
215 |
if ($uriPiece) { |
215 |
$uri_params_part .= '&' if $uri_params_part; |
216 |
$uri_params_part .= '&' if $uri_params_part; |
216 |
$uri_params_part .= $_ . '='; |
217 |
$uri_params_part .= $param . '='; |
217 |
$uri_params_part .= URI::Escape::uri_escape( $query->param($_) ); |
218 |
$uri_params_part .= URI::Escape::uri_escape( $uriPiece ); |
218 |
} |
219 |
} |
219 |
} |
220 |
} |
220 |
$uri_base_part .= '?' if $uri_params_part; |
221 |
$uri_base_part .= '?' if $uri_params_part; |