This is an automated notification sent by Gna!.
It relates to:
bugs #1799, project GLPI
==============================================================================
OVERVIEW of bugs #1799:
==============================================================================
URL:
<http://gna.org/bugs/?func=detailitem&item_id=1799>
Project: GLPI
Submitted by: Jean-Mathieu Doléans
Submitted on: Thu 10/28/2004 at 13:12
Category: None
Severity: 3 - Ordinary
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: moyo
Originator Email:
Open/Closed: Open
Summary: setup-dropdowns.php, $which renovie une valeur non
conforme (exemple : "locationswhich=locations" au lieu de "locations"
_______________________________________________________
Original Submission:
J'avais le problème suivant :
Dans configuration --> intitulés, la liste des éléments de chaque rubrique
(lieux, types d emachines, etc...) ne s'affichait jamais.
Via un echo $which dans setup-dropdowns.php, je me suis aperçu que $which
renvoyait par exemple : "locationswhich=locations" au lieu de "locations" tout
court
Est ce un probleme spécifique à mon installation et ma version de php ou
d'autres ont ils eu ce problème ?
J'ai résolu mon problème de la façon suivante, j'ai ajouté le code suivant :
// Modifications Patrick Kocelniak 26-10-2004
$longueur=(strlen($which)-5)/2;
$which=substr($which,0,$longueur);
// Fin modifications
Modifications à mettre juste avant le code :
foreach ($dp as $key => $val){
$sel="";
if ($which==$key) $sel="selected";
echo "<option value='$key' $sel>".$val."</option>";
}
==============================================================================
This item URL is:
<http://gna.org/bugs/?func=detailitem&item_id=1799>
_______________________________________________
Message sent via/by Gna!
http://gna.org/