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

linkedObjectsIds is null when doing a search #32096

Open
denes44 opened this issue Nov 25, 2024 · 0 comments
Open

linkedObjectsIds is null when doing a search #32096

denes44 opened this issue Nov 25, 2024 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@denes44
Copy link
Contributor

denes44 commented Nov 25, 2024

Bug

The API return null for the linkedObjectsIds field when doing a search, but when querying the order directly, it returns the references correctly.

Dolibarr Version

20.0.2

Environment PHP

8.2.24

Environment Database

MySQL or MariaDB 10.9.8-MariaDB-1:10.9.8+maria~deb11

Steps to reproduce the behavior and expected behavior

Result of:
GET http://dolibarr_ip/dolibarr/api/index.php/orders?sqlfilters=ref:like:SO2411-0003

[
  {
    "module": null,
    "id": "5",
    "entity": "1",
    "import_key": null,
    "array_options": [],
    "array_languages": null,
    "contacts_ids": [],
    "linkedObjectsIds": null,
    "canvas": null,
    "fk_project": null,
    "contact_id": null,
    "user": null,
    "origin_type": null,
    "origin_id": null,
    "ref": "SO2411-0003"
  }
]

Result of:
GET http://dolibarr_ip/dolibarr/api/index.php/orders/5

{
  "module": null,
  "id": "5",
  "entity": "1",
  "import_key": null,
  "array_options": [],
  "array_languages": null,
  "contacts_ids": [],
  "linkedObjectsIds": {
    "shipping": {
      "3": "3"
    }
  },
  "canvas": null,
  "fk_project": null,
  "contact_id": null,
  "user": null,
  "origin_type": null,
  "origin_id": null,
  "ref": "SO2411-0003"
  }
]

Attached files

No response

@denes44 denes44 added the Bug This is a bug (something does not work as expected) label Nov 25, 2024
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