Announcement

Collapse
No announcement yet.

Ajax response after 5.0 upgrade

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ajax response after 5.0 upgrade

    Hello I have a problem with Ajax response. After the upgrade to new version I get bad server response error. Function is postAction and I return the data like this:
    return json_encode($params['userCode']); If I make a die('test'); I get the same Bad Server Response but I get the 'test' output into console. How should I return these functions now? It was working on older version of Espo.

  • #2
    Just found out that the params is now given as object, not as array so instead of $params['userCode'] you need to use $params->userCode. Problem solved.

    Comment

    Working...
    X