Skip to content

Commit

Permalink
Merge branch '2'
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Jul 20, 2017
2 parents bc741fb + c110b4e commit b444db1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Model/BlogMemberExtension.php
Expand Up @@ -50,6 +50,10 @@ public function onBeforeWrite()
{
$count = 1;

if ($this->owner->URLSegment && !$this->owner->isChanged('FirstName') && !$this->owner->isChanged('Surname')) {
return;
}

$this->owner->URLSegment = $this->generateURLSegment();

while (!$this->validURLSegment()) {
Expand Down

0 comments on commit b444db1

Please sign in to comment.