API bug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • partomas
    Active Community Member
    • Sep 2018
    • 331

    API bug

    Sorry, it's might be written wrong, but I guess you'll understand the issue.
    we updated espo to v7.0.7 and figured our an issue in API. there a sample and issue:
    client->request('GET', $sisara['enety'].'?offset=0&maxSize=1&where[0][field]='.$sisara['wheretofind'].'&where[0][type]=equals&where[0][value]='.$sisara['whattofind']);
    by the suc request we always get response:
    [total] => -2
    no matter is there are any records or no. We do some testings or actions based on [total] value, but if it's always -2 it's bad
    Last edited by yuri; 10-18-2021, 10:45 AM.
  • dimyy
    Active Community Member
    • Jun 2018
    • 569

    #2
    How about "Disable record count" for the $sisara['enety'] entity?
    Attached Files

    Comment


    • partomas
      partomas commented
      Editing a comment
      It's "unchecked" like in your picture.
  • yuri
    Member
    • Mar 2014
    • 8586

    #3
    If a total is shown on the list view (for any entity) that means API works. Maybe you have some customization for your entity.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • partomas
      Active Community Member
      • Sep 2018
      • 331

      #4
      Thank you, we'll look at our side.

      Comment

      Working...