Skip to content

Commit 9c0dd30

Browse files
committed
Use default identifier not only id
1 parent 04f08ef commit 9c0dd30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FlexiPeeHP/Stitky.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function getLabels()
3434
*/
3535
public function setLabel($label)
3636
{
37-
$this->insertToFlexiBee(['id' => $this->getRecordID(), 'stitky' => $label]);
37+
$this->insertToFlexiBee(['id' => $this->getRecordIdent(), 'stitky' => $label]);
3838
return $this->lastResponseCode == 201;
3939
}
4040

@@ -47,7 +47,7 @@ public function setLabel($label)
4747
*/
4848
public function unsetLabel($labelsToRemove)
4949
{
50-
$this->insertToFlexiBee(['id' => $this->getMyKey(), 'stitky@removeAll' => 'true',
50+
$this->insertToFlexiBee(['id' => $this->getRecordIdent(), 'stitky@removeAll' => 'true',
5151
'stitky' => array_diff_key($this->getLabels($this),
5252
Stitek::listToArray($labelsToRemove))]);
5353
return $this->lastResponseCode == 201;
@@ -60,7 +60,7 @@ public function unsetLabel($labelsToRemove)
6060
*/
6161
public function unsetLabels()
6262
{
63-
$this->insertToFlexiBee(['id' => $this->getMyKey(), 'stitky@removeAll' => 'true']);
63+
$this->insertToFlexiBee(['id' => $this->getRecordIdent(), 'stitky@removeAll' => 'true']);
6464
return $this->lastResponseCode == 201;
6565
}
6666
}

0 commit comments

Comments
 (0)