Self reference in Api

I just noticed that within api, the object supplier references itself, which creates errors when trying to retrieve data using the api.

To demonstrate the behavior, I logged in to the api page and started navigating the supplier object and the result is this:

The self reference is underlined in red and I have clicked on it several times and it result in the bread crumbs saying:

Supplier/Supplier/Supplier/Supplier/ ... 

@lubos could you please look into the matter.


Edit: I haven’t tested this exhaustively, but this seems to affect a template file that I created without any suppliers, customers, bank accounts, etc. And despite that, each object still contains a single record that is a self reference. The business in the screenshot was just imported from a backup of the template file.

Other businesses seem to be unaffected.

I don’t know if this is helpful but I thought it is worth mentioning.

Actually on a new Business, there are a number of entries that have this “Self Reference”

And the Self reference in Payments…

and Receipts:

1 Like

Fixed in the latest version (21.8.23)

1 Like