X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Fediter_auteurs.php;fp=www%2Fecrire%2Finc%2Fediter_auteurs.php;h=695cf6517d8d2812e51826012838e35c01b654f8;hp=c6b214c3e320245411fc0350c7e29d36c1b99454;hb=e99f0878011913365e49b30d90e496c24c301393;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed diff --git a/www/ecrire/inc/editer_auteurs.php b/www/ecrire/inc/editer_auteurs.php index c6b214c..695cf65 100644 --- a/www/ecrire/inc/editer_auteurs.php +++ b/www/ecrire/inc/editer_auteurs.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2011 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -32,7 +32,7 @@ function inc_editer_auteurs_dist($type, $id, $flag, $cherche_auteur, $ids, $titr $aff_les_auteurs = afficher_auteurs_objet($type, $id, $flag, '', $script_edit_objet, $arg_ajax); if ($flag) { - $futurs = ajouter_auteurs_objet($type, $id, '',$script_edit_objet, $arg_ajax); + $futurs = ajouter_auteurs_objet($type, $id, '',$script_edit_objet, $arg_ajax, $cherche_auteur); } else $futurs = ''; $ldap = isset($GLOBALS['meta']['ldap_statut_import']) ? @@ -227,7 +227,7 @@ function ajouter_auteur_un($row, $own) { } // http://doc.spip.org/@ajouter_auteurs_objet -function ajouter_auteurs_objet($type, $id, $cond_les_auteurs,$script_edit, $arg_ajax) +function ajouter_auteurs_objet($type, $id, $cond_les_auteurs,$script_edit, $arg_ajax, $valeur='') { if (!$determiner_non_auteurs = charger_fonction('determiner_non_auteurs_'.$type,'inc',true)) $determiner_non_auteurs = 'determiner_non_auteurs'; @@ -248,7 +248,7 @@ function ajouter_auteurs_objet($type, $id, $cond_les_auteurs,$script_edit, $arg_ $sel = "$text"; $clic = _T('bouton_ajouter'); } else if ((_SPIP_AJAX < 1) OR ($all >= _SPIP_SELECT_MAX_AUTEURS)) { - $sel = "$text "; + $sel = "$text "; $clic = _T('bouton_chercher'); } else { $sel = selecteur_auteur_ajax($type, $id, $js, $text, $idom);