This mail is an automated notification from the bugs tracker
 of the project: GLPI.




/**************************************************************************/
[bugs #1799] Full Item Snapshot:

URL: <http://gna.org/bugs/?func=detailitem&item_id=1799>
Project: GLPI
Submitted by: Jean-Mathieu Doléans
On: jeu 28.10.2004 à 11:12

Category:  None
Severity:  3 - Ordinary
Priority:  5 - Normal
Resolution:  None
Privacy:  Public
Assigned to:  moyo
Originator Email:  
Status:  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>";

}











For detailed info, follow this link:
<http://gna.org/bugs/?func=detailitem&item_id=1799>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


Répondre à