Closed atomfrede closed 3 years ago
As it's a bug, adding a bounty on this
As pointed by @atomfrede the issue is only for one-to-one mapping at:-
https://github.com/jhipster/generator-jhipster/blob/717d172efbbe35d0fb862cd11299f6c308bf034b/generators/entity-client/templates/vue/src/main/webapp/app/entities/entity-update.vue.ejs#L192
relationshipFieldNamePlural
should be otherEntityNamePlural
in v-for
loop
Shall i provide a PR if @atomfrede is not already on it?
@swarajsaaj Go ahead, I believe @atomfrede only open the ticket.
Go ahead. Otherwise I would have looked it this evening.
Overview of the issue
Selections for relationships seem to be broken in vue. The for loop uses a non existing property.
Motivation for or Use Case
It should work out of box.
Reproduce the error
Import following JDL:
Try to edit a
Hike
. You will notice the location selectors are empty.Related issues
None.
Suggest a Fix
startLocations
does not exist. They correct property would behikingLocations
.JHipster Version(s)
Latest main.
JHipster configuration
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "16.0.1" 2021-04-20 OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9) OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode, sharing)
git version 2.31.1
node: v14.16.1
npm: 7.11.1
Docker version 20.10.6, build 370c28948e
docker-compose version 1.29.2, build unknown
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System