Skip to content

Commit 1b136bc

Browse files
Uses term slugs
1 parent 82c7d5f commit 1b136bc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Processors/RelationshipProcessor.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ public function setEntryId($entryId)
133133
public function setUpdatedEntryDetails($entryData)
134134
{
135135
$this->updatedEntry = $entryData;
136-
$this->entryId = $this->updatedEntry->id();
136+
137+
if ($entryData instanceof Term) {
138+
$this->entryId = $this->updatedEntry->slug();
139+
} else {
140+
$this->entryId = $this->updatedEntry->id();
141+
}
137142

138143
return $this;
139144
}

0 commit comments

Comments
 (0)