Skip to content

Reference to the same relationship from two different fields? #64

@fsauter

Description

@fsauter

Hi guys,

following scenario: I have an item with two tax code fields - different names but same type (and maybe same record):

Item
    belongs_to :tax_code_sales, class_name: TaxCode
    belongs_to :tax_code_purchase, class_name: TaxCode

If I have an item that has for both fields the same tax code (same ID) and I call toJSONTree the tax_code_purchase field contains "[Circular]".

Is there a way to create a condition to allow a scenario like this?

I guess it's related to this line: Resource.js#L238 but before I dig into it.. do you have any ideas/hints/solutions?

Cheers Florian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions