Skip to content

Commit d51b739

Browse files
committed
Merge branch 'fix-ppd-validation'
# Conflicts: # app/Rules/ValidPpdJson.php
2 parents 51479b0 + fbab614 commit d51b739

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/Rules/ValidPpdJson.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ public function __invoke($attribute, $value, $fail)
8181
}
8282

8383
foreach ($option['values'] as $value_key => $o) {
84-
$fail('validation.json_ppd')->translate(['opt' => 'VALUE_KEY']);
8584
if (! is_string($value_key) && ! is_int($value_key)) {
85+
$fail('validation.json_ppd')->translate(['opt' => 'VALUE_KEY - '.$value_key]);
86+
8687
return;
8788
}
8889

0 commit comments

Comments
 (0)