Skip to content

Commit 1f28ce3

Browse files
Merge pull request #5088 in SW/shopware from sw-19080/5.2/fix-snippet-update to 5.2
* commit '4fc4c7525864beb5e87e9208aee55e3cb5e54a65': SW-19080 - Fix comparison fixes shopware/shopware#1166
2 parents 13e3f47 + 4fc4c75 commit 1f28ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/Shopware/Components/Snippet/Writer/DatabaseWriter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private function updateRecord($name, $value, $row)
214214
{
215215
$hasSameValue = $name === $row['name'] && $value === $row['value'];
216216

217-
$isDirty = $row['dirty'] === 1;
217+
$isDirty = $row['dirty'] == 1;
218218

219219
// snippet was never touched after insert
220220
if (!$this->force && $hasSameValue && !$isDirty) {

0 commit comments

Comments
 (0)