Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST put api/index.php/contacts/<id> fails to update ref_ext field #17967

Closed
a-schild opened this issue Jun 17, 2021 · 1 comment
Closed

REST put api/index.php/contacts/<id> fails to update ref_ext field #17967

a-schild opened this issue Jun 17, 2021 · 1 comment
Labels
Bug This is a bug (something does not work as expected)

Comments

@a-schild
Copy link
Contributor

Bug

When using the put method on a contact to update the ref_ext property, this field is not updated

Environment

  • Version: 13.0.2
  • OS: Debian 10
  • Web server: Apache2
  • PHP: 7.4
  • Database: MariaDB
  • URL(s): put api/index.php/contacts/

Expected and actual behavior

The new value of the ref_ext field should be stored in the database and also returned in the response.

Steps to reproduce the behavior

curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'DOLAPIKEY: xxxxxxxx' -d '{
"ref_ext": "Updated"
}' 'http://192.168.189.6/api/index.php/contacts/29936'

Response:

{
  "ref": "29936",
  "ref_ext": "",
....
}

@a-schild a-schild added the Bug This is a bug (something does not work as expected) label Jun 17, 2021
@a-schild
Copy link
Contributor Author

Doing the same on thirdparties, just works fine and the ref_ext is updated in the thirdparty

a-schild added a commit to a-schild/dolibarr that referenced this issue Jun 17, 2021
@eldy eldy closed this as completed in 5b8c93b Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant