Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 141 → Rev 142

/trunk/services/modules/Traitement.php
83,9 → 83,9
if (isset($projet) && isset($script)) {
$requete = ($this->distinct ? 'SELECT DISTINCT' : 'SELECT').' * '.
'FROM ref_traitement '.
"WHERE referentiel_code = $projet ".
" AND script = $script ".
' AND date_fin IS NULL '.
"WHERE ".(($projet == "'tout'") ? '' : 'referentiel_code = '.$projet.' AND ') .
" script = $script ".
' AND date_fin IS NULL '.
'ORDER BY '.((!is_null($this->orderby)) ? $this->orderby : 'meta_date_creation DESC').' '.
'LIMIT 0,1 ';
120,9 → 120,9
$requete = ($this->distinct ? 'SELECT DISTINCT' : 'SELECT').' * '.
'FROM ref_traitement '.
"WHERE referentiel_code = $projet ".
" AND script = $script ".
' AND date_debut IS NULL '.
' AND date_fin IS NULL '.
" AND script = $script ".
' AND date_debut IS NULL '.
' AND date_fin IS NULL '.
'ORDER BY '.((!is_null($this->orderby)) ? $this->orderby : 'meta_date_creation DESC').' ';
// Récupération des résultats