Skip to content

Commit

Permalink
url_friendly_id
Browse files Browse the repository at this point in the history
  • Loading branch information
kg-bot committed Feb 12, 2020
1 parent a753fbc commit d3be906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Variation/Variation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function types()
{
$types = new TypeBuilder( $this->request );
$old_entity = $types->getEntity();
$types->setEntity( str_replace( ':variation_number', $this->{$this->primaryKey}, $old_entity ) );
$types->setEntity(str_replace(':variation_number', $this->{$this->url_friendly_id}, $old_entity));

return $types;
}
Expand Down

0 comments on commit d3be906

Please sign in to comment.