Skip to content

first string field takes preference as document link - #559

Merged
abovedave merged 4 commits into
developfrom
feature/document-list-link
Oct 26, 2018
Merged

first string field takes preference as document link#559
abovedave merged 4 commits into
developfrom
feature/document-list-link

Conversation

@abovedave

Copy link
Copy Markdown
Contributor

This PR addresses a small issue if you set a Reference field or Media field as the first displayed field in your API schema you are unable to click through from the list view (both those fields override the link).

It finds the first field of type String and appends the document link to that value, even if it's not in position 0. If there are no String fields in the schema, it fallsback to position 0

Comment thread frontend/containers/DocumentList/DocumentList.jsx Outdated
Comment thread frontend/containers/DocumentList/DocumentList.jsx Outdated
eduardoboucas and others added 2 commits October 26, 2018 17:02
Co-Authored-By: abovedave <david@longworth.to>
Co-Authored-By: abovedave <david@longworth.to>
@abovedave
abovedave merged commit aa80def into develop Oct 26, 2018
@abovedave
abovedave deleted the feature/document-list-link branch October 26, 2018 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants