Issue #0001981: [Saisie - setLienChange] transfert des liens
This commit is contained in:
parent
fcf672e5ea
commit
70709d22f6
@ -2339,6 +2339,21 @@ class Saisie extends Scores_Ws_Server
|
||||
}
|
||||
if ($result) return true;
|
||||
}
|
||||
//Move active participations if TUP and Fusion selected
|
||||
elseif ($action=='tupfusion')
|
||||
{
|
||||
try {
|
||||
$result = $lienM->update(array('idAct'=>$id, 'idUpdate'=>$this->tabInfoUser['id']),
|
||||
"id=$idLien AND actif=1 AND dateSuppr='0000-00-00 00:00:00'");
|
||||
} catch (Zend_Db_Exception $e) {
|
||||
if ($this->tabInfoUser['idClient']==1) {
|
||||
throw new SoapFault('ERR', $e->getMessage());
|
||||
} else {
|
||||
throw new SoapFault('ERR', "Application error");
|
||||
}
|
||||
}
|
||||
if ($result) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user