Merge branch 'remove-forgotten-dd' into 'develop'
remove de DD sauvages See merge request ldc-web/projets/le-gaulois!79
This commit is contained in:
commit
d69f9bfcd1
2 changed files with 8 additions and 12 deletions
|
|
@ -157,18 +157,14 @@ class UpdateEngagement extends FormRequest
|
||||||
break;
|
break;
|
||||||
case InputType::labelArray()->value:
|
case InputType::labelArray()->value:
|
||||||
$all = $this->all();
|
$all = $this->all();
|
||||||
try {
|
foreach ($this->input("content.$i.content.$iptName.value") as $labelIndex => $label) {
|
||||||
foreach ($this->input("content.$i.content.$iptName.value") as $labelIndex => $label) {
|
if ($labelIndex === 'X') {
|
||||||
if ($labelIndex === 'X') {
|
unset($all['content'][$i]['content'][$iptName]['value'][$labelIndex]);
|
||||||
unset($all['content'][$i]['content'][$iptName]['value'][$labelIndex]);
|
continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$rules = array_merge($rules, [
|
|
||||||
"content.$i.content.$iptName.value.$labelIndex.*" => 'string'
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
$rules = array_merge($rules, [
|
||||||
dd($this->input("content.$i.content.$iptName.value"));
|
"content.$i.content.$iptName.value.$labelIndex.*" => 'string'
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
$this->merge($all);
|
$this->merge($all);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -688,7 +688,7 @@ class Mercanet
|
||||||
$info = curl_getinfo($ch);
|
$info = curl_getinfo($ch);
|
||||||
|
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
dd('toto', $this->parameters['transactionReference']);
|
report(new \RuntimeException("MERCANET [$this->parameters['transactionReference']] : curl error: " . curl_error($ch)));
|
||||||
Log::critical("MERCANET [$this->parameters['transactionReference']] : curl error: " . curl_error($ch));
|
Log::critical("MERCANET [$this->parameters['transactionReference']] : curl error: " . curl_error($ch));
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
return (object)['status' => 'KO', 'code' => 500];
|
return (object)['status' => 'KO', 'code' => 500];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue