Changeset 2724


Ignore:
Timestamp:
May 17, 2012, 4:30:14 PM (8 years ago)
Author:
goya
Message:

options fonctionnelles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/parlementaire/actions/actions.class.php

    r2723 r2724  
    526526  public function executeWidget(sfWebRequest $request) {
    527527    $this->parl = $request->getParameter('depute');
    528     $this->options = array(
    529       'titre' => $request->getParameter('notitre', true),
    530       'photo' => $request->getParameter('nophoto', true),
    531       'graphe' => $request->getParameter('nographe', true),
    532       'activite' => $request->getParameter('noactivite', true));
     528    $this->options = array('titre' => 1, 'photo' => 1, 'graphe' => 1, 'activite' => 1);
     529    if ($request->getParameter('notitre', false))
     530      $this->options['titre'] = 0;
     531    if ($request->getParameter('nophoto', false))
     532      $this->options['photo'] = 0;
     533    if ($request->getParameter('nographe', false))
     534      $this->options['graphe'] = 0;
     535    if ($request->getParameter('noactivite', false))
     536      $this->options['activite'] = 0;
    533537    $this->setLayout(false);
    534538  }
Note: See TracChangeset for help on using the changeset viewer.