Changeset 53798 in spip-zone


Ignore:
Timestamp:
Oct 28, 2011, 3:01:07 PM (8 years ago)
Author:
cedric@…
Message:

http://core.spip.org/issues/2367 : transmettre un contexte aux modeles quand on calcule les doublons documents

Location:
_core_/plugins/medias
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/medias/inc/marquer_doublons_doc.php

    r48222 r53798  
    5858        $modeles = $modeles['modeles'];
    5959        $GLOBALS['doublons_documents_inclus'] = array();
    60         traiter_modeles($champs_a_traiter,array('documents'=>$modeles)); // detecter les doublons
     60        $env = array(
     61                'objet' => $type,
     62                'id_objet' => $id,
     63                $id_table_objet => $id
     64        );
     65        traiter_modeles($champs_a_traiter,array('documents'=>$modeles),'','',null,$env); // detecter les doublons
    6166        objet_qualifier_liens(array('document'=>'*'),array($type=>$id),array('vu'=>'non'));
    6267        if (count($GLOBALS['doublons_documents_inclus'])){
  • _core_/plugins/medias/paquet.xml

    r52656 r53798  
    22        prefix="medias"
    33        categorie="multimedia"
    4         version="2.4.1"
     4        version="2.4.2"
    55        etat="test"
    66        compatibilite="[3.0.0-alpha2;["
Note: See TracChangeset for help on using the changeset viewer.