Commit 990a170f authored by Hamza Arfaoui's avatar Hamza Arfaoui

CAFI178

parent bd0cb246
...@@ -822,6 +822,7 @@ function getMotifsOrientations($id = null, $agence = null, $entite = null, $type ...@@ -822,6 +822,7 @@ function getMotifsOrientations($id = null, $agence = null, $entite = null, $type
} }
$r_orientations = $result_orientations['stmt']; $r_orientations = $result_orientations['stmt'];
$orientation_selected = false;
while ($orientation = $r_orientations->fetchObject()) { while ($orientation = $r_orientations->fetchObject()) {
array_push($ARRAY, $orientation); array_push($ARRAY, $orientation);
$ORIENTATIONS .= '<option value="' . $orientation->id_orientation . '"'; $ORIENTATIONS .= '<option value="' . $orientation->id_orientation . '"';
...@@ -831,8 +832,9 @@ function getMotifsOrientations($id = null, $agence = null, $entite = null, $type ...@@ -831,8 +832,9 @@ function getMotifsOrientations($id = null, $agence = null, $entite = null, $type
$selected = true; $selected = true;
} }
} }
if (!$selected && $orientation->orientation == 3) { // SRDV if (!$selected && $orientation->orientation == 3 && !$orientation_selected) { // SRDV
$ORIENTATIONS .= ' selected'; $ORIENTATIONS .= ' selected';
$orientation_selected = true;
} }
$ORIENTATIONS .= '>'; $ORIENTATIONS .= '>';
$ORIENTATIONS .= $GLOBALS["BO_CONF"]["ENTITIES"] ? $orientation->libelle. ' - ' : ''; $ORIENTATIONS .= $GLOBALS["BO_CONF"]["ENTITIES"] ? $orientation->libelle. ' - ' : '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment