Correction de 'states/getByIdChip' car la liste 'pin_values' était dans le désordre

This commit is contained in:
xdrm-brackets 2016-07-19 16:14:04 +02:00
parent 8349cd875a
commit 7e660e9399
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@
*/
public static function getForChip($id_chip){
$req = Database::getPDO()->prepare("SELECT s.state, pm.id_chip, GROUP_CONCAT(s.value) as pin_values
FROM state as s, (SELECT * FROM pin_merge ORDER BY pin ASC) as pm
$req = Database::getPDO()->prepare("SELECT s.state, pm.id_chip, GROUP_CONCAT(s.value ORDER BY pm.pin ASC) as pin_values
FROM state as s, pin_merge as pm
WHERE s.id_pin_merge = pm.id_pin_merge
AND pm.id_chip = :id_chip
GROUP BY s.state, pm.id_chip");