EMS Badge UI Code
This commit is contained in:
parent
5f71b0e5f2
commit
cca8f50c29
1 changed files with 13 additions and 1 deletions
|
|
@ -964,6 +964,18 @@ sub removeFromScratchCart {
|
|||
$self->session->scratch->set('EMS_scratch_cart', join("\n",@newArr));
|
||||
}
|
||||
|
||||
#------------------------------------------------------------------
|
||||
sub www_removeFromScratchCart {
|
||||
my $self = shift;
|
||||
return $self->session->privilege->noAccess() unless $self->canView;
|
||||
|
||||
my $pid = $self->session->form->get("pid");
|
||||
$self->removeFromScratchCart($pid);
|
||||
|
||||
return $self->www_search;
|
||||
}
|
||||
|
||||
|
||||
#------------------------------------------------------------------
|
||||
sub resolveConflictForm {
|
||||
my $self = shift;
|
||||
|
|
@ -2398,7 +2410,7 @@ sub www_search {
|
|||
from products as p, EventManagementSystem_products as e where p.productId = e.productId and p.productId=?",[$eventId]);
|
||||
$eventData->{'startDate'} = $self->session->datetime->epochToHuman($eventData->{'startDate'});
|
||||
$eventData->{'endDate'} = $self->session->datetime->epochToHuman($eventData->{'endDate'});
|
||||
|
||||
$eventData->{'removeEventFromBadge.url'} = $self->getUrl("func=removeFromScratchCart;pid=".$eventData->{'productId'});
|
||||
push(@selectedEvents_loop, $eventData);
|
||||
}
|
||||
$var{'eventsInBadge_loop'} = \@selectedEvents_loop;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue