Remove meta field when content is empty.

This commit is contained in:
James Cole 2017-11-30 19:39:49 +01:00
parent 4a1c155874
commit f30442320c
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -364,6 +364,8 @@ class TransactionJournal extends Model
return new TransactionJournalMeta();
}
if (is_string($value) && 0 === strlen($value)) {
$this->deleteMeta($name);
return new TransactionJournalMeta();
}