fixed more session related bugs
This commit is contained in:
parent
2e5f5c6038
commit
c5cf903b45
11 changed files with 47 additions and 47 deletions
|
|
@ -139,7 +139,7 @@ sub www_checkoutConfirm {
|
|||
|
||||
foreach (@$normal) {
|
||||
$_->{deleteIcon} = $session->icon->delete('op=deleteCartItem;itemId='.$_->{item}->id.';itemType='.$_->{item}->type);
|
||||
$_->{'quantity.form'} = WebGUI::Form::integer({
|
||||
$_->{'quantity.form'} = WebGUI::Form::integer($session,{
|
||||
name => 'quantity~'.$_->{item}->type.'~'.$_->{item}->id,
|
||||
value => $_->{quantity},
|
||||
size => 3,
|
||||
|
|
@ -148,7 +148,7 @@ sub www_checkoutConfirm {
|
|||
}
|
||||
foreach (@$recurring) {
|
||||
$_->{deleteIcon} = $session->icon->delete('op=deleteCartItem;itemId='.$_->{item}->id.';itemType='.$_->{item}->type);
|
||||
$_->{'quantity.form'} = WebGUI::Form::integer({
|
||||
$_->{'quantity.form'} = WebGUI::Form::integer($session,{
|
||||
name => 'quantity~'.$_->{item}->type.'~'.$_->{item}->id,
|
||||
value => $_->{quantity},
|
||||
size => 3,
|
||||
|
|
@ -593,16 +593,16 @@ sub www_listTransactions {
|
|||
|
||||
$output .= $i18n->get('selection message');
|
||||
|
||||
$output .= WebGUI::Form::formHeader;
|
||||
$output .= WebGUI::Form::formHeader($session);
|
||||
$output .= WebGUI::Form::hidden($session,{name=>'op', value=>'listTransactions'});
|
||||
$output .= '<table>';
|
||||
$output .= '<td>'.WebGUI::Form::radio($session,{name=>'selection', value => 'init', checked=>($session->form->process("selection") eq 'init')}).'</td>';
|
||||
$output .= '<td align="left">'.$i18n->get('init date').'</td>';
|
||||
$output .= '<td>'.WebGUI::Form::date($session,{name=>'initStart', value=>$initStart}).' '.$i18n->get('and').' '.WebGUI::Form::date({name=>'initStop', value=>$initStop}).'</td>';
|
||||
$output .= '<td>'.WebGUI::Form::date($session,{name=>'initStart', value=>$initStart}).' '.$i18n->get('and').' '.WebGUI::Form::date($session,{name=>'initStop', value=>$initStop}).'</td>';
|
||||
$output .= '</tr><tr>';
|
||||
$output .= '<td>'.WebGUI::Form::radio($session,{name=>'selection', value => 'completion', checked=>($session->form->process("selection") eq 'completion')}).'</td>';
|
||||
$output .= '<td align="left">'.$i18n->get('completion date').'</td>';
|
||||
$output .= '<td>'.WebGUI::Form::date($session,{name=>'completionStart', value=>$completionStart}).' '.$i18n->get('and').' '.WebGUI::Form::date({name=>'completionStop', value=>$completionStop}).'</td>';
|
||||
$output .= '<td>'.WebGUI::Form::date($session,{name=>'completionStart', value=>$completionStart}).' '.$i18n->get('and').' '.WebGUI::Form::date($session,{name=>'completionStop', value=>$completionStop}).'</td>';
|
||||
$output .= '</tr><tr>';
|
||||
$output .= '<td></td>';
|
||||
$output .= '<td align="left">'.$i18n->get('transaction status').'</td>';
|
||||
|
|
@ -790,7 +790,7 @@ sub www_viewCart {
|
|||
|
||||
foreach (@$normal) {
|
||||
$_->{deleteIcon} = $session->icon->delete('op=deleteCartItem;itemId='.$_->{item}->id.';itemType='.$_->{item}->type);
|
||||
$_->{'quantity.form'} = WebGUI::Form::integer({
|
||||
$_->{'quantity.form'} = WebGUI::Form::integer($session,{
|
||||
name => 'quantity~'.$_->{item}->type.'~'.$_->{item}->id,
|
||||
value => $_->{quantity},
|
||||
size => 3,
|
||||
|
|
@ -799,7 +799,7 @@ sub www_viewCart {
|
|||
}
|
||||
foreach (@$recurring) {
|
||||
$_->{deleteIcon} = $session->icon->delete('op=deleteCartItem;itemId='.$_->{item}->id.';itemType='.$_->{item}->type);
|
||||
$_->{'quantity.form'} = WebGUI::Form::integer({
|
||||
$_->{'quantity.form'} = WebGUI::Form::integer($session,{
|
||||
name => 'quantity~'.$_->{item}->type.'~'.$_->{item}->id,
|
||||
value => $_->{quantity},
|
||||
size => 3,
|
||||
|
|
|
|||
|
|
@ -640,11 +640,11 @@ sub www_manageUsersInGroup {
|
|||
return $session->privilege->adminOnly() unless ($session->user->isInGroup(3) || _hasSecondaryPrivilege($session,$session->form->process("gid")));
|
||||
my $i18n = WebGUI::International->new($session);
|
||||
my $output = WebGUI::Form::formHeader($session,)
|
||||
.WebGUI::Form::hidden({
|
||||
.WebGUI::Form::hidden($session,{
|
||||
name=>"gid",
|
||||
value=>$session->form->process("gid")
|
||||
})
|
||||
.WebGUI::Form::hidden({
|
||||
.WebGUI::Form::hidden($session,{
|
||||
name=>"op",
|
||||
value=>"deleteGrouping"
|
||||
});
|
||||
|
|
@ -658,7 +658,7 @@ sub www_manageUsersInGroup {
|
|||
order by users.username");
|
||||
foreach my $row (@{$p->getPageData}) {
|
||||
$output .= '<tr><td>'
|
||||
.WebGUI::Form::checkbox({
|
||||
.WebGUI::Form::checkbox($session,{
|
||||
name=>"uid",
|
||||
value=>$row->{userId}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -523,12 +523,12 @@ sub www_listProductVariants {
|
|||
%parameters = map {$_->{parameterId} => $_->{name}} sort {$a->{name} <=> $b->{name}} @{$product->getParameter};
|
||||
%options = map {$_->{optionId} => $_->{value}} @{$product->getOption};
|
||||
|
||||
$output = WebGUI::Form::formHeader;
|
||||
$output .= WebGUI::Form::hidden({
|
||||
$output = WebGUI::Form::formHeader($session);
|
||||
$output .= WebGUI::Form::hidden($session,{
|
||||
name => 'op',
|
||||
value => 'listProductVariantsSave',
|
||||
});
|
||||
$output .= WebGUI::Form::hidden({
|
||||
$output .= WebGUI::Form::hidden($session,{
|
||||
name => 'productId',
|
||||
value => $productId,
|
||||
});
|
||||
|
|
@ -552,7 +552,7 @@ sub www_listProductVariants {
|
|||
$output .= '</td><td align="right">'.$_->{weight}."</td><td>";
|
||||
$output .= '*' if ($_->{weightOverride});
|
||||
$output .= "</td>";
|
||||
$output .= "<td>".WebGUI::Form::checkbox({
|
||||
$output .= "<td>".WebGUI::Form::checkbox($session,{
|
||||
name => 'available',
|
||||
value => $_->{variantId},
|
||||
checked => $_->{available},
|
||||
|
|
|
|||
|
|
@ -316,16 +316,16 @@ sub www_listSubscriptionCodes {
|
|||
|
||||
$output .= $i18n->get('selection message');
|
||||
|
||||
$output .= WebGUI::Form::formHeader;
|
||||
$output .= WebGUI::Form::formHeader($session);
|
||||
$output .= WebGUI::Form::hidden($session,{name=>'op', value=>'listSubscriptionCodes'});
|
||||
$output .= '<table>';
|
||||
$output .= '<td>'.WebGUI::Form::radio($session,{name=>'selection', value => 'du', checked=>($session->form->process("selection") eq 'du')}).'</td>';
|
||||
$output .= '<td align="left">'.$i18n->get('selection used').'</td>';
|
||||
$output .= '<td>'.WebGUI::Form::date($session,{name=>'duStart', value=>$duStart}).' '.$i18n->get('and').' '.WebGUI::Form::date({name=>'duStop', value=>$duStop}).'</td>';
|
||||
$output .= '<td>'.WebGUI::Form::date($session,{name=>'duStart', value=>$duStart}).' '.$i18n->get('and').' '.WebGUI::Form::date($session,{name=>'duStop', value=>$duStop}).'</td>';
|
||||
$output .= '</tr><tr>';
|
||||
$output .= '<td>'.WebGUI::Form::radio($session,{name=>'selection', value => 'dc', checked=>($session->form->process("selection") eq 'dc')}).'</td>';
|
||||
$output .= '<td align="left">'.$i18n->get('selection created').'</td>';
|
||||
$output .= '<td>'.WebGUI::Form::date($session,{name=>'dcStart', value=>$dcStart}).' '.$i18n->get('and').' '.WebGUI::Form::date({name=>'dcStop', value=>$dcStop}).'</td>';
|
||||
$output .= '<td>'.WebGUI::Form::date($session,{name=>'dcStart', value=>$dcStart}).' '.$i18n->get('and').' '.WebGUI::Form::date($session,{name=>'dcStop', value=>$dcStop}).'</td>';
|
||||
$output .= '</tr><tr>';
|
||||
$output .= '<td>'.WebGUI::Form::radio($session,{name=>'selection', value => 'b', checked=>($session->form->process("selection") eq 'b')}).'</td>';
|
||||
$output .= '<td align="left">'.$i18n->get('selection batch id').'</td>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue