Fixed post relations wiped out on mass tag

This commit is contained in:
Marcin Kurczewski 2014-11-09 20:44:28 +01:00
parent 26eda78745
commit 58b7a3ac6b

View file

@ -21,11 +21,13 @@ class PostEditFormData implements IValidatable
if ($inputReader !== null)
{
$this->content = $inputReader->decodeBase64($inputReader->content);
$this->thumbnail = $inputReader->decodebase64($inputReader->thumbnail);
$this->thumbnail = $inputReader->decodeBase64($inputReader->thumbnail);
if ($inputReader->safety)
$this->safety = EnumHelper::postSafetyFromString($inputReader->safety);
if ($inputReader->source !== null)
$this->source = $inputReader->source;
$this->tags = preg_split('/[\s+]/', $inputReader->tags);
if ($inputReader->relations !== null)
$this->relations = array_filter(preg_split('/[\s+]/', $inputReader->relations));
$this->seenEditTime = $inputReader->seenEditTime;
$this->flags = new \StdClass;