Commit d6314715 authored by Jonathan Shaw's avatar Jonathan Shaw Committed by Matthew Radcliffe
Browse files

Issue #3227619 by jonathanshaw, John Pitcairn: Clarify the uuid requirement for POST queries

parent ef83aa72
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -512,11 +512,6 @@ class XeroQuery /*implements XeroQueryInterface */ {

      $this->explodeConditions();

      // Change to PUT if UUID is not set for a post.
      if ($this->method === 'post' && !$this->uuid) {
        $this->setMethod('put');
      }

      $data_class = $this->type_definition['class'];
      $endpoint = $this->uuid ? $data_class::$plural_name . '/' . (string) $this->uuid : $data_class::$plural_name;
      $context = [