New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To-many-users relationship showing up as UUIDs in list view instead of `title`s #1518

Closed
thoaionline opened this Issue Jul 23, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@thoaionline

thoaionline commented Jul 23, 2017

Expected behavior

Relationship field should show the linked entries' titles, not UUIDs.

Actual behavior

Collection list view shows the field's UUID's - raw value

Steps to reproduce

  1. Create a fieldset with a users field named assignees
  2. Assign the fieldset to a collection.
  3. Create an entry in the above collection, set the value of assignees field to one or more users.
  4. Customizing the list of fields for rendering at site/content/collections/resources/folder.yaml, adding a columns array containing assignees as a sub value.
  5. Return to list view, the value of assignees show up as a list of users' UUIDs, not username.

screen shot 2017-07-23 at 2 55 50 pm

Server Details

Operating System:

  • Ubuntu 16.04 (staging server)
  • OS X Serria (via MAMP, dev machine)

Web Server: NginX

PHP Version: 7.1

Statamic Version: 2.6.1

Updated from an older Statamic or fresh install: Both

List of installed addons: N/A

Logs

Content of site/content/collections/resources/folder.yaml

title: Resources
order: date
fieldset: resource
columns:
  - title
  - media-formats
  - sectors
  - regions
  - assignees
@thoaionline

This comment has been minimized.

thoaionline commented Jul 23, 2017

I understand that this fix may not be a priority. However, it'd be nice to include a CP hook so that site developers can customize the output of \Statamic\Http\Controllers\EntriesController::get.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment