Changeset 88194 in spip-zone


Ignore:
Timestamp:
Mar 24, 2015, 5:39:17 PM (5 years ago)
Author:
abelass@…
Message:

bug sur l'installation du champ 'action_cloture'

Location:
_plugins_/reservation_evenement/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/reservation_evenement/trunk/base/reservation_evenement.php

    r86152 r88194  
    203203        //Ajouter le champ action_cloture dans le tables artiles et evenements
    204204       
    205         $tables['spip_articles']['field']['action_cloture'] = "tinyint(1) NOT NULL";
     205
    206206        $tables['spip_articles']['champs_editable'][] = "action_cloture";       
    207         $tables['spip_evenements']['field']['action_cloture'] = "tinyint(1) NOT NULL";
    208207        $tables['spip_evenements']['champs_editable'][] = "action_cloture";     
    209208       
     
    212211}
    213212
     213function reservation_evenement_declarer_tables_principales($tables_principales) {
     214
     215        $tables_principales['spip_articles']['field']['action_cloture'] = "tinyint(1) NOT NULL";
     216        $tables_principales['spip_evenements']['field']['action_cloture'] = "tinyint(1) NOT NULL";
     217
     218        return $tables_principales;
     219}
     220
  • _plugins_/reservation_evenement/trunk/paquet.xml

    r88141 r88194  
    77        logo="prive/themes/spip/images/reservation_evenement-64.png"
    88        documentation="http://contrib.spip.net/Reservation-d-evenements-4459"
    9         schema="1.4.0"
     9        schema="1.4.1"
    1010>
    1111
     
    3535        <pipeline nom="declarer_tables_objets_sql" inclure="base/reservation_evenement.php" />
    3636        <pipeline nom="declarer_tables_interfaces" inclure="base/reservation_evenement.php" />
     37        <pipeline nom="declarer_tables_principales" inclure="base/reservation_evenement.php" />         
    3738
    3839        <pipeline nom="affiche_auteurs_interventions" inclure="reservation_evenement_pipelines.php" />
  • _plugins_/reservation_evenement/trunk/reservation_evenement_administrations.php

    r85944 r88194  
    4141        }
    4242
    43         $maj['create'] = array(array('maj_tables', array('spip_reservations', 'spip_reservations_details')));
     43        $maj['create'] = array(array('maj_tables', array('spip_reservations', 'spip_reservations_details','spip_articles','spip_evenements')));
    4444        $maj['1.1.0'] = array(
    4545           array('sql_alter','TABLE spip_reservations_details CHANGE prix_unitaire_ht prix_ht float NOT NULL DEFAULT 0'),
     
    4949        $maj['1.3.1'] = array( array('maj_tables', array('spip_reservations')));
    5050        $maj['1.3.3'] = array( array('ecrire_config', 'reservation_evenement', $config)  );     
    51         $maj['1.4.0'] = array(array('maj_tables', array('spip_articles','spip_evenements')));   
     51        $maj['1.4.1'] = array(array('maj_tables', array('spip_articles','spip_evenements')));   
    5252               
    5353        include_spip('base/upgrade');
  • _plugins_/reservation_evenement/trunk/reservation_evenement_pipelines.php

    r88144 r88194  
    159159               
    160160                $type=$fonds[$fond];
     161                echo($type);
    161162                $rubrique_reservation=isset($config['rubrique_reservation'])?picker_selected($config['rubrique_reservation'],'rubrique'):'';
    162163                $id=_request('id_'.$type);
Note: See TracChangeset for help on using the changeset viewer.