Closed mauserrifle closed 5 years ago
@mauserrifle Does it work if you call lists()
on the Collection rather than on the query builder, i.e. self::isEnabled()->orderBy('is_pinned', 'desc')->orderBy('name', 'asc')->get()->lists('name', 'id');
That would be much nicer.
Closing as it has been over a month since any activity on this occurred and we are trying to figure out what issues are still relevant. If this is still something that you would like to see through to fruition please respond and we can get the ball rolling.
Why this bug still is not fixed? The fix from @alxy works fine.
@iboved feel free to submit a PR.
Because of the
lists
method on QueryBuilder, the names are not translated usingCountry::getNameList
. I temporarly fixed it using the code below. But I think there could be a better solution I overlook.