stockpile-co / api

The API for Stockpile, an app that manages stuff for organizations.
0 stars 1 forks source link

hotfix/item custom field value (2) #356

Closed AdamVig closed 7 years ago

AdamVig commented 7 years ago

Fix get item custom field missing results When a custom field applies to all categories (it has no rows in customFieldCategory) and has no value, it was not being returned by this endpoint because the where statement expects itemCustomField.barcode to be set. Allowing that field to be null ensures that these custom fields will be present in the response.

Remove category name from get item custom fields response This field was causing duplicate results when a custom field was in multiple categories.