fix pre selection

This commit is contained in:
Marion Muszynski 2016-11-25 11:56:05 +01:00
parent cc725c4d89
commit fc38b7d684

View File

@ -210,7 +210,7 @@ class BlockOrderSummary extends Module {
<div style="margin:10px auto;" class="styled-select semi-square bg-purple-light">
<select name="summary_id_order" id="summary_id_order" class="">';
foreach ($orders as $key => $order) {
echo '<option value="'.$order['id_order'].' '.((int)$order['id_order'] == (int)$params['order']->id ? 'selected="selected"' : '').'">Commande #'.$order['id_order'].'</option>';
echo '<option value="'.$order['id_order'].'" '.((int)$order['id_order'] == (int)$params['order']->id ? 'selected="selected"' : '').'">Commande #'.$order['id_order'].'</option>';
}
echo '</select>
</div>