Change to correct variable

This commit is contained in:
weryques 2017-12-14 10:06:46 -02:00
parent f4d4d0312a
commit 9506f3107f
1 changed files with 2 additions and 2 deletions

View File

@ -199,8 +199,8 @@ class TAINACAN_REST_Items_Controller extends WP_REST_Controller {
return new WP_REST_Response([
'error_message' => __('One or more values are invalid.', 'tainacan'),
'errors' => $item->get_errors(),
'item' => $item->__toJSON()
'errors' => $this->item->get_errors(),
'item' => $this->item->__toJSON()
], 400);
}