Changeset 116 for trunk/lib


Ignore:
Timestamp:
03/26/09 18:47:15 (15 years ago)
Author:
nanardon
Message:
  • show when poll creation request does not exists (#23)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Vote/Controller/Newpoll.pm

    r53 r116  
    4747    $c->stash->{reqid} = $id; 
    4848 
     49    if (!$c->model('Vote')->poll_request_info($id)) { 
     50        $c->stash->{template} = 'newpoll/norequest.tt'; 
     51    } 
     52 
    4953    $c->stash->{page}{title} = 'Confirmer la création d\'un nouveau vote'; 
    5054    if ($c->req->param('passwd')) { 
Note: See TracChangeset for help on using the changeset viewer.