This commit is contained in:
2026-01-03 01:22:08 +00:00
parent 5d38ae391b
commit 29a5b65352
2 changed files with 3 additions and 3 deletions

View File

@@ -25,13 +25,13 @@ class Typeavenant extends Modele
{
$sql = 'SELECT A.codeTypeAvenant as `code`, A.libelleEng as libelle FROM typeavenant A
join suiteavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
where (B.oldCodeTypeAvenant=?) order by A.libelle';
where (B.oldCodeTypeAvenant=?) and A.order by A.libelle';
}
else
{
$sql = 'SELECT A.codeTypeAvenant as `code`, A.libelle FROM typeavenant A
join suiteavenant B on (B.codeTypeAvenant=A.codeTypeAvenant)
where (B.oldCodeTypeAvenant=?) order by A.libelle';
where (B.oldCodeTypeAvenant=?) and A.extranetClient="1" order by A.libelle';
}
$liste = $this->executerRequete($sql, array($oldCodeTypeAvenant));