diff options
| author | Zog | 2018-02-08 10:33:46 +0100 |
|---|---|---|
| committer | Zog | 2018-02-08 10:33:46 +0100 |
| commit | 9442303a794a32ee431baada5cea15467323f629 (patch) | |
| tree | d05aca8b761e5753110ba47879b076d5bbac440a /app/javascript | |
| parent | 4f58c4eaca46dc975aa907840cdbe067f6225d5e (diff) | |
| download | chouette-core-9442303a794a32ee431baada5cea15467323f629.tar.bz2 | |
Refs #5863 @6h; Remove workbench id from the querystring
Infer it when possible, and use a nested otherwise
Diffstat (limited to 'app/javascript')
| -rw-r--r-- | app/javascript/vehicle_journeys/components/tools/select2s/MissionSelect2.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/javascript/vehicle_journeys/components/tools/select2s/MissionSelect2.js b/app/javascript/vehicle_journeys/components/tools/select2s/MissionSelect2.js index 7ab85a1ea..72dbd0152 100644 --- a/app/javascript/vehicle_journeys/components/tools/select2s/MissionSelect2.js +++ b/app/javascript/vehicle_journeys/components/tools/select2s/MissionSelect2.js @@ -29,11 +29,11 @@ export default class BSelect4 extends Component { val = this.props.selection.selectedJPModal } } - if(this.useAjax()){ - val = val.published_name - } - else{ - if(val){ + if(val){ + if(this.useAjax()){ + val = val.published_name + } + else{ val = val.id } } |
