From 0a786040a4beb06884d9512d4e6ebc032a822a11 Mon Sep 17 00:00:00 2001 From: Lasertie Zyglonk Date: Sun, 10 May 2026 16:39:02 +0200 Subject: [PATCH] Correct the name of oc_gestion_produit_devis to dhb2_gestion_produit_devis because the table was named like this in my nc bdd. I don't know if I'm right but I made this correction on my nc app and it works. --- lib/Db/Bdd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/Bdd.php b/lib/Db/Bdd.php index 14673365..78be094b 100755 --- a/lib/Db/Bdd.php +++ b/lib/Db/Bdd.php @@ -82,7 +82,7 @@ public function getOneDevis($numdevis,$idNextcloud){ } public function getListProduit($numdevis, $idNextcloud){ - $sql = "SELECT ".$this->tableprefix."produit.id as pid,".$this->tableprefix."produit_devis.id as pdid, header, reference, description,".$this->tableprefix."produit_devis.comment, quantite, prix_unitaire FROM ".$this->tableprefix."produit, ".$this->tableprefix."devis, ".$this->tableprefix."produit_devis WHERE ".$this->tableprefix."produit.id = produit_id AND ".$this->tableprefix."devis.id = devis_id AND ".$this->tableprefix."devis.id = ? AND ".$this->tableprefix."devis.id_configuration = ? AND ".$this->tableprefix."produit.id_configuration = ? ORDER BY `oc_gestion_produit_devis`.`order` ASC"; + $sql = "SELECT ".$this->tableprefix."produit.id as pid,".$this->tableprefix."produit_devis.id as pdid, header, reference, description,".$this->tableprefix."produit_devis.comment, quantite, prix_unitaire FROM ".$this->tableprefix."produit, ".$this->tableprefix."devis, ".$this->tableprefix."produit_devis WHERE ".$this->tableprefix."produit.id = produit_id AND ".$this->tableprefix."devis.id = devis_id AND ".$this->tableprefix."devis.id = ? AND ".$this->tableprefix."devis.id_configuration = ? AND ".$this->tableprefix."produit.id_configuration = ? ORDER BY `dhb2_gestion_produit_devis`.`order` ASC"; return $this->execSQL($sql, array($numdevis, $idNextcloud, $idNextcloud)); }