Ignore:
Timestamp:
Jan 31, 2012, 3:34:21 PM (8 years ago)
Author:
komodo
Message:

fix backend fuse commissions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/branches/senat/project/apps/backend/modules/organisme/actions/actions.class.php

    r2029 r2624  
    112112    $this->type = $request->getParameter('type');
    113113    $this->forward404Unless($this->type && preg_match('/^(commission|seance)$/', $this->type));
    114     $this->bads = $request->getParameter('bad');
    115     $this->goods = $request->getParameter('good');
     114    $this->bads = $request->getParameter('bad', $_SESSION["hack_fuse_bad"]);
     115    $this->goods = $request->getParameter('good', $_SESSION["hack_fuse_good"]);
    116116    $this->forward404Unless($this->bads && $this->goods && ($this->bads != $this->goods));
     117    unset($_SESSION["hack_fuse_bad"]);
     118    unset($_SESSION["hack_fuse_good"]);
    117119
    118120    if ($this->type == "seance") {
     
    200202          } 
    201203        }
    202         if ($doublons_bad != "" && $doublons_good != "" && ($doublons_bad != $doublons_good))
    203           $this->redirect('@fuse?type=seance&id='.$this->bad.','.$this->good.'&bad='.$doublons_bad.'&good='.$doublons_good.'&doublons=1');
     204        if ($doublons_bad != "" && $doublons_good != "" && ($doublons_bad != $doublons_good)) {
     205          $_SESSION["hack_fuse_bad"] = $doublons_bad;
     206          $_SESSION["hack_fuse_good"] = $doublons_good;
     207          $this->redirect('@fuse?type=seance&id='.$this->bad.','.$this->good.'&doublons=1');
     208        }
    204209      }
    205210      $query = Doctrine_Query::create()
Note: See TracChangeset for help on using the changeset viewer.