Skip to content

Commit b4c4fb7

Browse files
committed
Don't save empty field references. Closes #126.
1 parent 74559df commit b4c4fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fieldtypes/SourceFieldtype.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function preProcess($data)
4242
public function process($data)
4343
{
4444
if ($data['source'] === 'field') {
45-
return '@seo:'.$data['value'];
45+
return $data['value'] ? '@seo:'.$data['value'] : null;
4646
}
4747

4848
if ($data['source'] === 'inherit') {

0 commit comments

Comments
 (0)