MD5Update attributes cannot handle validation failures with a redirect back to the form, so restore the old values for now

This commit is contained in:
2025-03-16 10:03:26 +11:00
parent 5d3b8609bb
commit 649749f9c1
3 changed files with 5 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
<!-- $o=Binary\JpegPhoto::class -->
<x-attribute.layout :edit="$edit" :new="false" :o="$o">
<table class="table table-borderless p-0 m-0">
@foreach (($old ? $o->values_old : $o->values) as $value)
@foreach ($o->values_old as $value)
<tr>
@switch ($x=$f->buffer($value,FILEINFO_MIME_TYPE))
@case('image/jpeg')