Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion admin_ui/src/components/RowFormSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}"
class="add"
target="_blank"
v-if="!isFilter"
v-if="!isFilter && getKeySelectID(property.title)"
>
<font-awesome-icon icon="edit" />
</router-link>
Expand Down
4 changes: 2 additions & 2 deletions admin_ui/src/views/RowListing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@
<span
class="link"
v-else-if="
isForeignKey(name) & (row[name] !== null)
isForeignKey(name) & (row[pkName] !== null)
"
>
<router-link
:to="{
name: 'editRow',
params: {
tableName: getTableName(name),
rowID: row[name]
rowID: row[pkName]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also thought so before, but the rowID: row[pkName] is the primary key of the Review table, not Review.movie.id.
I wrote in the comment the changes I think we need to make in Piccolo API to get correct results.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right - it took a while for me to realise this. My solution doesn't work.

}
}"
>{{ row[name + "_readable"] }}</router-link
Expand Down