Skip to content

Commit d1fb2f1

Browse files
committed
Fix update confirm showing 'Ignoring blank value' for newly added attributes that were submitted with no new value
1 parent 21d7d31 commit d1fb2f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Traits/MD5Updates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function isDirty(): bool
4545
}
4646

4747
// Process the remaining
48-
foreach ($this->values_old->except($processed)->dot()->keys()->merge($this->values->except($md5keys)->dot()->filter()->keys())->unique() as $dotkey) {
48+
foreach ($this->values_old->except($processed)->dot()->filter()->keys()->merge($this->values->except($md5keys)->dot()->filter()->keys())->unique() as $dotkey) {
4949
\Log::debug(sprintf('MD5:Checking normal key [%s] for attribute [%s]',$dotkey,$this->name),['old'=>$this->values_old->dot()->get($dotkey),'new'=>$this->values->dot()->get($dotkey)]);
5050

5151
if ($this->values_old->dot()->get($dotkey) !== $this->values->dot()->get($dotkey))

resources/views/update.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<abbr title="{{ $oo->description }}">{{ $oo->name }}</abbr>
3939
</th>
4040

41-
@foreach($oo->values->dot()->keys()->merge($oo->values_old->dot()->keys())->unique() as $dotkey)
41+
@foreach($oo->values->dot()->filter()->keys()->merge($oo->values_old->dot()->filter()->keys())->unique() as $dotkey)
4242
@if($loop->index)
4343
</tr><tr>
4444
@endif

0 commit comments

Comments
 (0)