Skip to content

Commit

Permalink
PT-13847: Return all dictionary items for a dynamic property (#2706)
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-dudarev authored Oct 11, 2023
1 parent bf147de commit 99ff325
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ public async Task<ActionResult> DeleteProperty([FromRoute] string typeName, [Fro
[Route("types/{typeName}/properties/{propertyId}/dictionaryitems")]
public async Task<ActionResult<DynamicPropertyDictionaryItem[]>> GetDictionaryItems([FromRoute] string typeName, [FromRoute] string propertyId)
{
var result = await _dynamicPropertyDictionaryItemsSearchService.SearchDictionaryItemsAsync(new DynamicPropertyDictionaryItemSearchCriteria { PropertyId = propertyId, ObjectType = typeName });
return Ok(result.Results);
var result = await _dynamicPropertyDictionaryItemsSearchService.SearchAllNoCloneAsync(new DynamicPropertyDictionaryItemSearchCriteria { PropertyId = propertyId, ObjectType = typeName });
return Ok(result);
}

[ApiExplorerSettings(IgnoreApi = true)]
Expand Down

0 comments on commit 99ff325

Please sign in to comment.