Fix logic processing isDirty() for MD5Update apps by checking that the new & old values dont equal before checking their md5 value
This commit is contained in:
parent
3d511f3fae
commit
64cc21d819
@ -12,7 +12,8 @@ trait MD5Updates
|
||||
public function isDirty(): bool
|
||||
{
|
||||
foreach ($this->values_old->dot()->keys()->merge($this->values->dot()->keys())->unique() as $dotkey)
|
||||
if (md5(Arr::get($this->values_old->dot(),$dotkey)) !== Arr::get($this->values->dot(),$dotkey))
|
||||
if ((Arr::get($this->values_old->dot(),$dotkey) !== Arr::get($this->values->dot(),$dotkey))
|
||||
&& (md5(Arr::get($this->values_old->dot(),$dotkey)) !== Arr::get($this->values->dot(),$dotkey)))
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user