diff --git a/composer.json b/composer.json index 83cdd30..8750ef4 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "quaderno/quaderno", "type": "library", "description": "PHP wrapper for the Quaderno REST API", - "version": "1.6.3", + "version": "1.6.4", "keywords": ["billing","receipts", "invoices", "stripe", "paypal", "braintree", "gocardless", "vat", "gst"], "homepage": "https://github.com/quaderno/quaderno-php", "license": "MIT", diff --git a/quaderno_model.php b/quaderno_model.php index f1fd297..31f5232 100755 --- a/quaderno_model.php +++ b/quaderno_model.php @@ -113,8 +113,6 @@ public function save() if ($new_data) $this->data = $new_data->data; } - $new_data = (isset($this->data['items_attributes']) && !$new_object); - /** * 3rd step - Update object * Update object - This is only necessary when it's not a new object, or new payments have been created.