marmelab / ng-admin

Add an AngularJS admin GUI to any RESTful API
http://ng-admin-book.marmelab.com/
MIT License
3.95k stars 728 forks source link

The template scope's Datastore variable bug (in showView) #1365

Open ajordanduh opened 7 years ago

ajordanduh commented 7 years ago

It seems when using the datastore variable to compare what is saved in the database and what is on the server you get a lengthy json blob of the entire datastore if those values differ. I am trying to develop a workaround for this. An example of the comparison in my template is below:

<span ng-if="datastore._entries.teacher_name_14_values[0].values.years == entry.values.teacher_name_years_on_server" ...

Every time a teacher name is added or removed from the database the integer (14) is incremented or decremented causing the hard-coded value to be changed every time. Is there a fix for this?