|
Lines 261-268
if ($budget) { # its a mod ..
Link Here
|
| 261 |
if ( defined $budget->{'sort1_authcat'} ) { # with custom Asort* planning values |
261 |
if ( defined $budget->{'sort1_authcat'} ) { # with custom Asort* planning values |
| 262 |
$CGIsort1 = GetAuthvalueDropbox( 'sort1', $budget->{'sort1_authcat'}, $data->{'sort1'} ); |
262 |
$CGIsort1 = GetAuthvalueDropbox( 'sort1', $budget->{'sort1_authcat'}, $data->{'sort1'} ); |
| 263 |
} |
263 |
} |
| 264 |
} else { |
264 |
} elsif(scalar(@$budgets)){ |
| 265 |
$CGIsort1 = GetAuthvalueDropbox( 'sort1', @$budgets[0]->{'sort1_authcat'}, '' ); |
265 |
$CGIsort1 = GetAuthvalueDropbox( 'sort1', @$budgets[0]->{'sort1_authcat'}, '' ); |
|
|
266 |
}else{ |
| 267 |
$CGIsort1 = GetAuthvalueDropbox( 'sort1','', '' ); |
| 266 |
} |
268 |
} |
| 267 |
|
269 |
|
| 268 |
# if CGIsort is successfully fetched, the use it |
270 |
# if CGIsort is successfully fetched, the use it |
|
Lines 278-286
if ($budget) {
Link Here
|
| 278 |
if ( defined $budget->{'sort2_authcat'} ) { |
280 |
if ( defined $budget->{'sort2_authcat'} ) { |
| 279 |
$CGIsort2 = GetAuthvalueDropbox( 'sort2', $budget->{'sort2_authcat'}, $data->{'sort2'} ); |
281 |
$CGIsort2 = GetAuthvalueDropbox( 'sort2', $budget->{'sort2_authcat'}, $data->{'sort2'} ); |
| 280 |
} |
282 |
} |
| 281 |
} else { |
283 |
} elsif(scalar(@$budgets)) { |
| 282 |
$CGIsort2 = GetAuthvalueDropbox( 'sort2', @$budgets[0]->{sort2_authcat}, '' ); |
284 |
$CGIsort2 = GetAuthvalueDropbox( 'sort2', @$budgets[0]->{sort2_authcat}, '' ); |
|
|
285 |
}else{ |
| 286 |
$CGIsort2 = GetAuthvalueDropbox( 'sort2','', '' ); |
| 283 |
} |
287 |
} |
|
|
288 |
|
| 284 |
if ($CGIsort2) { |
289 |
if ($CGIsort2) { |
| 285 |
$template->param( CGIsort2 => $CGIsort2 ); |
290 |
$template->param( CGIsort2 => $CGIsort2 ); |
| 286 |
} else { |
291 |
} else { |
| 287 |
- |
|
|