X-Git-Url: http://olivier.miskin.fr/git/?a=blobdiff_plain;f=base%2Fsouscription.php;h=7c3d4cc188c844a263ac3814a32ec29108418bc2;hb=db3321551a66bec4d51f63084244c87b4182a30e;hp=886663abec2ee7ea1540287771842ea68da3cc72;hpb=1a4e5e1178d1aeb29bc93d21bb2f3cb523432de9;p=spip_souscriptions.git diff --git a/base/souscription.php b/base/souscription.php index 886663a..7c3d4cc 100644 --- a/base/souscription.php +++ b/base/souscription.php @@ -53,6 +53,8 @@ function souscription_declarer_tables_objets_sql($tables) { "code_postal" => "text NOT NULL DEFAULT ''", "adresse" => "text NOT NULL DEFAULT ''", "ville" => "text NOT NULL DEFAULT ''", + "pays" => "text NOT NULL DEFAULT ''", + "telephone" => "text NOT NULL DEFAULT ''", "recu_fiscal" => "varchar(3) NOT NULL DEFAULT ''", "type_souscription" => "varchar(255) NOT NULL DEFAULT ''", "informer_comite_local" => "varchar(3) NOT NULL DEFAULT ''", @@ -65,12 +67,10 @@ function souscription_declarer_tables_objets_sql($tables) { "KEY id_souscription_campagne" => "id_souscription_campagne"), 'titre' => "nom AS titre, '' AS lang", 'date' => "date_souscription", - 'champs_editables' => array('courriel', 'nom', 'prenom', 'code_postal', 'adresse', 'ville', 'recu_fiscal', 'envoyer_info'), - 'champs_versionnes' => array('courriel', 'nom', 'prenom', 'code_postal', 'adresse', 'ville', 'recu_fiscal', 'envoyer_info'), + 'champs_editables' => array('courriel', 'nom', 'prenom', 'code_postal', 'adresse', 'ville', 'pays', 'recu_fiscal', 'envoyer_info'), + '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'), ); @@ -96,7 +96,6 @@ function souscription_declarer_tables_objets_sql($tables) { 'champs_editables' => array('objectif', 'titre', 'texte', 'objectif_initial', 'type_objectif'), 'champs_versionnes' => array('objectif', 'titre', 'texte', 'objectif_initial', 'type_objectif'), 'rechercher_champs' => array(), - /* 'tables_jointures' => array('spip_souscription_campagnes'), */ ); return $tables;