Changeset 103826 in spip-zone


Ignore:
Timestamp:
Apr 8, 2017, 9:35:41 AM (2 years ago)
Author:
kent1@…
Message:

id_diogene est fourni désormais par le pipeline diogene_verifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/diogene/diogene_complements/diogene_agenda/trunk/diogene_agenda_pipelines.php

    r97999 r103826  
    114114 */
    115115function diogene_agenda_diogene_verifier($flux) {
    116         $id_diogene = _request('id_diogene');
    117         if (intval($id_diogene) && !_request('supprimer_evenement')) {
    118                 $champs_ajoutes = unserialize(sql_getfetsel('champs_ajoutes', 'spip_diogenes', 'id_diogene='.intval($id_diogene)));
     116        if (intval($flux['args']['id_diogene']) && !_request('supprimer_evenement')) {
     117                $champs_ajoutes = unserialize(sql_getfetsel('champs_ajoutes', 'spip_diogenes', 'id_diogene='.intval($flux['args']['id_diogene'])));
    119118                $erreurs = $flux['args']['erreurs'];
    120119                if (is_array($champs_ajoutes) && in_array('agenda', $champs_ajoutes)) {
     
    122121                        $erreurs = formulaires_editer_evenement_verifier_dist(_request('id_evenement'), $id_article, false, false, 'evenements_edit_config');
    123122                        unset($erreurs['id_parent']);
    124 
    125123                        if (!isset($flux['args']['options_complements']['agenda_obligatoire']) or $flux['args']['options_complements']['agenda_obligatoire'] != 'on') {
    126124                                $champs_post = false;
Note: See TracChangeset for help on using the changeset viewer.