Skip to content
Extraits de code Groupes Projets
Valider ac263071 rédigé par esj's avatar esj
Parcourir les fichiers

confusion valeur d'option / libellé (Alaing)

parent 357eea3d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -537,14 +537,14 @@ function selecteur_rubrique_html($id_rubrique, $type, $restreint, $idem=0) { ...@@ -537,14 +537,14 @@ function selecteur_rubrique_html($id_rubrique, $type, $restreint, $idem=0) {
$opt = sous_menu_rubriques($id_rubrique,0, 0,$data,$enfants,$idem, $restreint, $type); $opt = sous_menu_rubriques($id_rubrique,0, 0,$data,$enfants,$idem, $restreint, $type);
$att = " name='id_parent'\nstyle='font-size: 90%; width: 99%; font-face: verdana,arial,helvetica,sans-serif; max-height: 24px;'"; $att = " name='id_parent'\nstyle='font-size: 90%; width: 99%; font-face: verdana,arial,helvetica,sans-serif; max-height: 24px;'";
if (preg_match(',^<option[^>]*>([^<]*)</option>$,',$opt,$r)) if (preg_match(',^<option[^<>]*value=.(\d*).[^<>]*>([^<]*)</option>$,',$opt,$r))
$r = "<input$att type='hidden' value='" . $r[1] . "' />" . $r[1] ; $r = "<input$att type='hidden' value='" . $r[1] . "' />" . $r[2] ;
else else
$r = "<select$att size='1'>\n$opt</select>\n"; $r = "<select$att size='1'>\n$opt</select>\n";
# message pour neuneus (a supprimer ?) # message pour neuneus (a supprimer ?)
if ($type != 'auteur' AND $type != 'breve') # if ($type != 'auteur' AND $type != 'breve')
$r .= "\n<br />"._T('texte_rappel_selection_champs'); # $r .= "\n<br />"._T('texte_rappel_selection_champs');
return $r; return $r;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter