on ajoute un titre, utile que pour la conf

This commit is contained in:
Christophe 2020-04-24 22:00:09 +02:00
parent 9daa2e8ec6
commit 325527f615
3 changed files with 12 additions and 21 deletions

View file

@ -48,6 +48,7 @@ function gamumail_declarer_tables_objets_sql($tables) {
'field'=> array(
'id_gamumail' => 'bigint(21) NOT NULL',
'slug' => 'varchar(255) NOT NULL DEFAULT ""',
'titre' => 'varchar(255) NOT NULL DEFAULT ""',
'sujet' => 'varchar(255) NOT NULL DEFAULT ""',
'texte' => 'text NOT NULL DEFAULT ""',
'statut' => 'varchar(20) DEFAULT "0" NOT NULL',
@ -59,29 +60,18 @@ function gamumail_declarer_tables_objets_sql($tables) {
),
'titre' => 'slug AS titre, "" AS lang',
#'date' => '',
'champs_editables' => array('slug', 'sujet', 'texte'),
'champs_versionnes' => array('slug', 'sujet', 'texte'),
'champs_editables' => array('slug', 'sujet', 'texte','titre'),
'champs_versionnes' => array('slug', 'sujet', 'texte','titre'),
'rechercher_champs' => array("slug" => 8),
'tables_jointures' => array(),
'statut_textes_instituer' => array(
'prepa' => 'texte_statut_en_cours_redaction',
'prop' => 'texte_statut_propose_evaluation',
'publie' => 'texte_statut_publie',
'refuse' => 'texte_statut_refuse',
'poubelle' => 'texte_statut_poubelle',
),
'statut'=> array(
array(
'champ' => 'statut',
'publie' => 'publie',
'previsu' => 'publie,prop,prepa',
'post_date' => 'date',
'exception' => array('statut','tout')
)
),
'texte_changer_statut' => 'gamumail:texte_changer_statut_gamumail',
);
return $tables;

View file

@ -27,6 +27,7 @@ function gamumail_upgrade($nom_meta_base_version, $version_cible) {
$maj = array();
$maj['create'] = array(array('maj_tables', array('spip_gamumails')));
$maj['1.0.1'] = array(array('maj_tables', array('spip_gamumails')));
include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);

View file

@ -1,12 +1,12 @@
<paquet
prefix="gamumail"
categorie="communication"
version="1.0.0"
version="1.0.1"
etat="dev"
compatibilite="[3.3.0-dev;3.3.*]"
logo="prive/themes/spip/images/gamumail-64.png"
documentation=""
schema="1.0.0"
schema="1.0.1"
>
<!--
Paquet généré le 2020-04-24 20:56:15