Fixed a bug where WG::Sess:Form->param would return duplicate params
This commit is contained in:
parent
0c1a2e10b4
commit
ba3eedf4a7
2 changed files with 6 additions and 4 deletions
|
|
@ -20,6 +20,8 @@
|
||||||
http://www.plainblack.com/bugs/tracker/clear-login-history-period-is-calculated-24-times-longer-if-it-is-set-in-months#VomZpVCroSN6WoQ-UYo7Xw
|
http://www.plainblack.com/bugs/tracker/clear-login-history-period-is-calculated-24-times-longer-if-it-is-set-in-months#VomZpVCroSN6WoQ-UYo7Xw
|
||||||
- fix: SQLForm - cannot add new asset (revisited) (thanks to Joek Hondius)
|
- fix: SQLForm - cannot add new asset (revisited) (thanks to Joek Hondius)
|
||||||
http://www.plainblack.com/bugs/tracker/sqlform---cannot-add-new-asset-revisited#barqLwFe3LPODb4Mksc6ZA
|
http://www.plainblack.com/bugs/tracker/sqlform---cannot-add-new-asset-revisited#barqLwFe3LPODb4Mksc6ZA
|
||||||
|
- fix: Fixed a bug where $session->form->param() would return params twice.
|
||||||
|
(Martin Kamerbeek / Oqapi)
|
||||||
|
|
||||||
7.3.13
|
7.3.13
|
||||||
- fix: Stale pages after user login
|
- fix: Stale pages after user login
|
||||||
|
|
|
||||||
|
|
@ -143,14 +143,14 @@ sub param {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($self->session->request) {
|
if ($self->session->request) {
|
||||||
my @params = ();
|
my %params = ();
|
||||||
foreach ($self->session->request->param) {
|
foreach ($self->session->request->param) {
|
||||||
push(@params, $_);
|
$params{$_} = 1;
|
||||||
}
|
}
|
||||||
foreach ($self->session->request->body) {
|
foreach ($self->session->request->body) {
|
||||||
push(@params, $_);
|
$params{$_} = 1;
|
||||||
}
|
}
|
||||||
return @params;
|
return keys %params;
|
||||||
} else {
|
} else {
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue