From 649749f9c1fb4766a4dfafd53bff633dec413749 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 16 Mar 2025 10:03:26 +1100 Subject: [PATCH] MD5Update attributes cannot handle validation failures with a redirect back to the form, so restore the old values for now --- .../views/components/attribute/binary/jpegphoto.blade.php | 2 +- resources/views/components/attribute/krbprincipalkey.blade.php | 3 ++- resources/views/components/attribute/password.blade.php | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/views/components/attribute/binary/jpegphoto.blade.php b/resources/views/components/attribute/binary/jpegphoto.blade.php index 60d2e99e..5ecdf18c 100644 --- a/resources/views/components/attribute/binary/jpegphoto.blade.php +++ b/resources/views/components/attribute/binary/jpegphoto.blade.php @@ -2,7 +2,7 @@ - @foreach (($old ? $o->values_old : $o->values) as $value) + @foreach ($o->values_old as $value) @switch ($x=$f->buffer($value,FILEINFO_MIME_TYPE)) @case('image/jpeg') diff --git a/resources/views/components/attribute/krbprincipalkey.blade.php b/resources/views/components/attribute/krbprincipalkey.blade.php index cf58ced0..3c89d26e 100644 --- a/resources/views/components/attribute/krbprincipalkey.blade.php +++ b/resources/views/components/attribute/krbprincipalkey.blade.php @@ -1,6 +1,7 @@ + - @foreach($o->values as $value) + @foreach($o->values_old as $value) @if($edit)
($e=$errors->get($o->name_lc.'.'.$loop->index)),'mb-1','border-focus'=>$o->values->contains($value)]) name="{{ $o->name_lc }}[]" value="{{ md5($value) }}" @readonly(true)> diff --git a/resources/views/components/attribute/password.blade.php b/resources/views/components/attribute/password.blade.php index e2bab04b..895dc168 100644 --- a/resources/views/components/attribute/password.blade.php +++ b/resources/views/components/attribute/password.blade.php @@ -1,6 +1,7 @@ + - @foreach($o->values as $value) + @foreach($o->values_old as $value) @if($edit)