From 651e3cf7d78b9442d45726b6ff345778333cf6e7 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 21 Nov 2015 13:10:08 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20"base"=20dans=20la=20cr=C3=A9ation?= =?UTF-8?q?=20de=20contr=C3=B4le=20par=20import=20de=20MCC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/repo/controle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager/repo/controle.php b/manager/repo/controle.php index 3f5ed4d..af858ff 100755 --- a/manager/repo/controle.php +++ b/manager/repo/controle.php @@ -166,8 +166,8 @@ class controleRepo extends DBAccess{ /* [1] SI LE CONTRÔLE N'EXISTE PAS => ON LE CRÉÉ =====================================================*/ echo "$mcc_module|$nom|$libelle|$coefficient
"; - $creerControle = DataBase::getPDO()->prepare("INSERT INTO controle(id_controle, id_mcc_module, nom, libelle, coefficient, date_publication) - VALUES(DEFAULT, :mcc_module, :nom, :libelle, :coefficient, NOW())"); + $creerControle = DataBase::getPDO()->prepare("INSERT INTO controle(id_controle, id_mcc_module, nom, libelle, base, coefficient, date_publication) + VALUES(DEFAULT, :mcc_module, :nom, :libelle, 20, :coefficient, NOW())"); $creerControle->execute(array( ':mcc_module' => $mcc_module, ':nom' => $nom, ':libelle' => $libelle, ':coefficient' => $coefficient )); /* ON VÉRIFIE QUE LE MODULE APPARTIENT AU MCC DE CE MCC_UE */