Skip to content

Commit

Permalink
Don't save empty field references. Closes #126.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Sep 9, 2020
1 parent 74559df commit b4c4fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fieldtypes/SourceFieldtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function preProcess($data)
public function process($data)
{
if ($data['source'] === 'field') {
return '@seo:'.$data['value'];
return $data['value'] ? '@seo:'.$data['value'] : null;
}

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

0 comments on commit b4c4fb7

Please sign in to comment.