Skip to content
Permalink
Browse files

Correctly track modified fields in the `Model` class (see #1290).

  • Loading branch information
leofeyer committed Feb 28, 2018
1 parent 3ae93e6 commit 1e09fbbac1f5769452384561d227252d6c4fabf7
Showing with 3 additions and 2 deletions.
  1. +1 −0 CHANGELOG.md
  2. +2 −2 src/Resources/contao/library/Contao/Model.php
@@ -2,6 +2,7 @@

### DEV

* Correctly track modified fields in the `Model` class (see #1290).
* Use the normalized package versions for the CDN scripts (see #1391).

### 4.5.4 (2018-02-14)
@@ -394,9 +394,9 @@ public function mergeRow(array $arrData)
*/
public function markModified($strKey)
{
if (!isset($this->arrModified[$strKey]) && isset($this->arrData[$strKey]))
if (!isset($this->arrModified[$strKey]))
{
$this->arrModified[$strKey] = $this->arrData[$strKey];
$this->arrModified[$strKey] = $this->arrData[$strKey] ?? null;
}
}

0 comments on commit 1e09fbb

Please sign in to comment.
You can’t perform that action at this time.