Closed arthens closed 7 years ago
Hello! Will try to recreate this issue. will get back to you asap!
@jmramos02 did you have any luck reproducing it? Let me know if you need anything else from us
@arthens Thanks for this, we've confirmed the issue on our end. We were not able to reproduce the tas
issue though. We'll have a PR out for the objectName
.
PR merged. Marking this as closed.
Thank you!
Hey there,
we are trying to append tags to a ticket, but can't get it to work. Looking at the code we suspect it might be a bug, but we aren't sure.
This is the code we are using:
but nothing happens.
Debugging the code we realised that the client is sending a PUT request to
/tickets/{$id}/tags
with dataThe API docs say the request content should contain
tags
, nottag
, but the client is sendingtas
instead.The culprit seems to be
objectName
in Update. This trait expects the including class to defineobjectName
, but Tags doesn't explicitly do that, and relies on ResourceAbstract, which singularise it by default.We can't see any obvious way of changing this behaviour, but we can see that using reflections to "fix"
objectName
solves our problem:Is this a bug? Or are we misusing the client? (we are on 2.20 btw)
Thank you