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;
|
||||
case InputType::labelArray()->value:
|
||||
$all = $this->all();
|
||||
try {
|
||||
foreach ($this->input("content.$i.content.$iptName.value") as $labelIndex => $label) {
|
||||
if ($labelIndex === 'X') {
|
||||
unset($all['content'][$i]['content'][$iptName]['value'][$labelIndex]);
|
||||
continue;
|
||||
}
|
||||
$rules = array_merge($rules, [
|
||||
"content.$i.content.$iptName.value.$labelIndex.*" => 'string'
|
||||
]);
|
||||
foreach ($this->input("content.$i.content.$iptName.value") as $labelIndex => $label) {
|
||||
if ($labelIndex === 'X') {
|
||||
unset($all['content'][$i]['content'][$iptName]['value'][$labelIndex]);
|
||||
continue;
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
dd($this->input("content.$i.content.$iptName.value"));
|
||||
$rules = array_merge($rules, [
|
||||
"content.$i.content.$iptName.value.$labelIndex.*" => 'string'
|
||||
]);
|
||||
}
|
||||
$this->merge($all);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -688,7 +688,7 @@ class Mercanet
|
|||
$info = curl_getinfo($ch);
|
||||
|
||||
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));
|
||||
curl_close($ch);
|
||||
return (object)['status' => 'KO', 'code' => 500];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue