X-Git-Url: http://olivier.miskin.fr/git/?a=blobdiff_plain;f=base%2Fsouscription.php;h=4429e1932604f7b6ecc9a5121f267de49bcfec1c;hb=8a3221343fa2694400098fb5e6edf87f39f4275a;hp=d4fd62986dd9f90a415e5d5f465c0b1048caa730;hpb=93dcb8cfa1bd70c4b8e6eedf9c0a6daf509aa38c;p=spip_souscriptions.git diff --git a/base/souscription.php b/base/souscription.php index d4fd629..4429e19 100644 --- a/base/souscription.php +++ b/base/souscription.php @@ -71,8 +71,6 @@ function souscription_declarer_tables_objets_sql($tables) { 'champs_versionnes' => array('courriel', 'nom', 'prenom', 'code_postal', 'adresse', 'ville', 'pays', 'recu_fiscal', 'envoyer_info'), 'rechercher_champs' => array(), 'join' => array("id_transaction" => "id_transaction"), - /* 'join' => array("id_souscription_campagne" => "id_souscription_campagne"), */ - /* 'tables_jointures' => array('souscription_campagnes'), */ 'tables_jointures' => array('spip_transactions'), ); @@ -84,6 +82,7 @@ function souscription_declarer_tables_objets_sql($tables) { "objectif" => "int(11) NOT NULL DEFAULT 0", "objectif_initial" => "int(11) NOT NULL DEFAULT 0", "type_objectif" => "varchar(255) NOT NULL DEFAULT 0", + "objectif_limiter" => "varchar(3) NOT NULL DEFAULT 0", "titre" => "text NOT NULL DEFAULT ''", "texte" => "longtext NOT NULL DEFAULT ''", "statut" => "varchar(255) NOT NULL DEFAULT 0", @@ -95,10 +94,9 @@ function souscription_declarer_tables_objets_sql($tables) { ), 'titre' => "titre AS titre, '' AS lang", 'date' => "date", - 'champs_editables' => array('objectif', 'titre', 'texte', 'objectif_initial', 'type_objectif'), - 'champs_versionnes' => array('objectif', 'titre', 'texte', 'objectif_initial', 'type_objectif'), + 'champs_editables' => array('objectif', 'titre', 'texte', 'objectif_initial', 'type_objectif', 'objectif_limiter'), + 'champs_versionnes' => array('objectif', 'titre', 'texte', 'objectif_initial', 'type_objectif', 'objectif_limiter'), 'rechercher_champs' => array(), - /* 'tables_jointures' => array('spip_souscription_campagnes'), */ ); return $tables;