CustomVariable: reset 'deleted' when re-setting...

...a value
This commit is contained in:
Thomas Gelf 2016-09-08 22:40:07 +00:00
parent 2c7c54a15d
commit efd0b50052
6 changed files with 10 additions and 0 deletions

View File

@ -60,6 +60,8 @@ class CustomVariableArray extends CustomVariable
$this->setModified(); $this->setModified();
} }
$this->deleted = false;
return $this; return $this;
} }

View File

@ -36,6 +36,7 @@ class CustomVariableBoolean extends CustomVariable
} }
$this->value = $value; $this->value = $value;
$this->deleted = false;
return $this; return $this;
} }

View File

@ -46,6 +46,8 @@ class CustomVariableDictionary extends CustomVariable implements Countable
$new[$key] = self::wantCustomVariable($key, $val); $new[$key] = self::wantCustomVariable($key, $val);
} }
$this->deleted = false;
// WTF? // WTF?
if ($this->value === $new) { if ($this->value === $new) {
return $this; return $this;

View File

@ -36,6 +36,8 @@ class CustomVariableNull extends CustomVariable
); );
} }
$this->deleted = false;
return $this; return $this;
} }

View File

@ -49,6 +49,7 @@ class CustomVariableNumber extends CustomVariable
} }
$this->value = $value; $this->value = $value;
$this->deleted = false;
return $this; return $this;
} }

View File

@ -31,6 +31,8 @@ class CustomVariableString extends CustomVariable
$this->setModified(); $this->setModified();
} }
$this->deleted = false;
return $this; return $this;
} }