You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although the above is just an example, I have a different actual use case that I need to assign a reference to 2 different fields, one of which is multiple select. This use case involves the assignment of specification entities to a field named product_specs and to a field named product_sku_specs (multiple).
Of course I may be doing something wrong altogether, since I am still trying to find my way out. Btw, congrats for the project.
The error is:
Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: $item in $select.selected, Duplicate key: object:171, Duplicate value: {"value":"57dab634c7bfa33b623ee865","label":"Test"}
http://errors.angularjs.org/1.4.10/ngRepeat/dupes?p0=%24item%20in%20%24sele…%22value%22%3A%2257dab634c7bfa33b623ee865%22%2C%22label%22%3A%22Test%22%7D
at angular.js:68
at angular.js:28030
at r (angular.js:16068)
at h.$digest (angular.js:16203)
at h.$apply (angular.js:16467)
at HTMLDivElement.<anonymous> (angular.js:24076)
at Ke (angular.js:3374)
at HTMLDivElement.n (angular.js:3362)
Also, although the specific API call should return only 1 record ("Test"), and possibly be called only once, there are 2 API calls to the same URL, and in the second field 2 records are displayed (Test, Test). This does not happen if I remove the any of the fields.
Expected behavior: No error, a single record for the reference_many
Actual behavior: The above error, 2 records for the reference_many field.
The text was updated successfully, but these errors were encountered:
Scope
An Angular error occurs when attempting to use the same entity as reference to two different fields in a
creationView
.Prerequisites
ng-admin@1.0.0-alpha4
due to View not rendering #1201 A link to a showView does not make the proper API request #1203Description
In the following configuration:
Although the above is just an example, I have a different actual use case that I need to assign a reference to 2 different fields, one of which is multiple select. This use case involves the assignment of
specification
entities to a field namedproduct_specs
and to a field namedproduct_sku_specs
(multiple).Of course I may be doing something wrong altogether, since I am still trying to find my way out. Btw, congrats for the project.
The error is:
Also, although the specific API call should return only 1 record ("Test"), and possibly be called only once, there are 2 API calls to the same URL, and in the second field 2 records are displayed (Test, Test). This does not happen if I remove the any of the fields.
Expected behavior: No error, a single record for the
reference_many
Actual behavior: The above error, 2 records for the
reference_many
field.The text was updated successfully, but these errors were encountered: