Skip to content
Snippets Groups Projects
Commit c5c65f8c authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #16499 : default to first pickup location when provided by webservice

parent 67c12a3d
Branches
Tags
5 merge requests!780Master,!772Master,!771Hotline master,!770Stable,!761Hotline#16499 karvi hold
......@@ -655,8 +655,13 @@ class RechercheController extends ZendAfi_Controller_Action {
|| (!$item = Class_Exemplaire::find($this->_getParam('id_origine'))))
return;
foreach($comm->pickupLocationsFor($user, $item) as $k => $v)
$first = '';
foreach($comm->pickupLocationsFor($user, $item) as $k => $v) {
$first = $first ? $first : $k;
$element->addMultiOption($k, $v);
}
if ($first)
$element->setValue($first);
}
......
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