diff options
| author | Teddy Wing | 2018-04-19 17:34:37 +0200 | 
|---|---|---|
| committer | Johan Van Ryseghem | 2018-04-26 09:16:15 +0200 | 
| commit | 9c0013324b3dddb00c70b663a031b4ecf10e92c7 (patch) | |
| tree | c7e00db88a32ae7467795157351d16a9d0569f74 /app/controllers/autocomplete_lines_controller.rb | |
| parent | de3762e2db02f876bdd032c9e1afe716d3c25dde (diff) | |
| download | chouette-core-9c0013324b3dddb00c70b663a031b4ecf10e92c7.tar.bz2 | |
ReferentialVehicleJourneys: Use display name in line filter drop-down
Previously we had been showing the `name` field for the initial value of
an already selected line. However, that doesn't show all the information
that's normally given in the drop-down options. We instead have to use
the `#display_name` method to get the full display that people are used
to seeing in the drop-down.
This also means we can no longer `pluck`, as more fields are required to
assemble the display name. Instead, just do a simple `find` for the
record.
Refs #5889
Diffstat (limited to 'app/controllers/autocomplete_lines_controller.rb')
0 files changed, 0 insertions, 0 deletions
