Correction de 'states/getByIdChip' car la liste 'pin_values' était dans le désordre
This commit is contained in:
parent
0706b8e51b
commit
38aa539d57
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue