Commit 3238b219 authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

bug repair

parent ba7204ba
......@@ -79,18 +79,20 @@ echo $this->renderPartial("survey.views.tpls.forms.cplx.offresView",
<div class="form-buy" style="display:none;">
Pour : <br/>
<input type="text" id="namebuy" name="namebuy" style="width:100%;">
<select id="namebuylist">
acheteur éxistants<select id="namebuylist">
<option value=""></option>
<?php
$buyers = [];
foreach ($form["inputs"] as $k => $inp) {
if( $inp["type"] == "tpls.forms.cplx.offres" ){
foreach ($answer["answers"][$form["id"]][$k] as $ki => $line) {
if(isset($line["buys"])){
foreach ($line["buys"] as $idx => $b) {
if(!in_array($b["name"],$buyers)){
$buyers[] = $b["name"];
echo "<option value='".$b["name"]."'>".$b["name"]."</option>";
if(isset($answer["answers"][$form["id"]][$k])){
foreach ($answer["answers"][$form["id"]][$k] as $ki => $line) {
if(isset($line["buys"])){
foreach ($line["buys"] as $idx => $b) {
if(!in_array($b["name"],$buyers)){
$buyers[] = $b["name"];
echo "<option value='".$b["name"]."'>".$b["name"]."</option>";
}
}
}
}
......
......@@ -9,6 +9,7 @@ $re = "";
$cr = "";
$lb = "";
if(isset($answer["answers"]["sommomForm2"])){
foreach ($answer["answers"]["sommomForm2"] as $kk => $vv) {
foreach ($vv as $k => $v) {
if (isset($v["plageHoraireReg"])){
......@@ -22,6 +23,7 @@ $lb = "";
}
}
}
}
$editBtnReg = "";
$editBtnCrt = "";
......
......@@ -8,7 +8,7 @@ $re = "";
$cr = "";
$lb = "";
if(isset($answer["answers"]["sommomForm2"])){
foreach ($answer["answers"]["sommomForm2"] as $kk => $vv) {
foreach ($vv as $k => $v) {
if (isset($v["aprochReg"])){
......@@ -22,7 +22,7 @@ $lb = "";
}
}
}
}
$editBtnReg = "";
$editBtnCrt = "";
......
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