Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Issue with Relationship field

Status Resolved
Add-on / Version Publisher Lite 1.6.2
Severity
EE Version 1.9.0

LouWii D.

Apr 10, 2015

Hi,

I got an issue with the relationship field.

I got an entry with a relationship field.
On the published version of that entry, the relationship field is empty.
On the draft version of that entry, the relationship field is set to an other entry.

On the front-end :
- the published version shows the relationship of the draft version of the entry
- the draft version (I’m using ?publisher_status=draft to preview it) is not showing the relationship

Digging a bit, I found that disabling fallback on front-end does bring the correct behavior for the published entry (it’s not showing the relationship anymore, which is normal because there isn’t one).
But that doesn’t solve the issue on the draft version of the entry, the relationship is still not shown.

I looked at relationships_query($type, $entry_ids, $depths, $sql) in Publisher_relationship_hooks, I think there might be an issue with the logic in there.

Thanks

#1

BoldMinded (Brian)

Thanks for the report and steps to replicate. Was able to fix this and it’ll be in the next release, perhaps later this week.

#2

BoldMinded (Brian)

Comment has been marked private.

#3

LouWii D.

Comment has been marked private.

#4

BoldMinded (Brian)

Damnit. The interaction of all these fieldtypes is going to be the death of me.

#5

BoldMinded (Brian)

I can’t replicate this. I even setup a new channel and fields with the same names that you’re using, and used your exact template code. Can you take a video capture of the entire process so I can see the issue happening?

#6

LouWii D.

Comment has been marked private.

#7

BoldMinded (Brian)

Try screenr.com or screenyapp.com.

#8

BoldMinded (Brian)

I can’t make much out of the screenshots, try attaching a video.

Are you creating a new entry, or editing an existing entry? If new are you saving as draft first or published? Are you publishing an entry in the default or a secondary language?

#9

BoldMinded (Brian)

Comment has been marked private.

#10

LouWii D.

Comment has been marked private.

#11

BoldMinded (Brian)

Thanks for the update (and the video). I’ll try to take a look at it again one night this week.

#12

BoldMinded (Brian)

I tried to replicate this locally but could not. I have an entry with a relationship field. The related entry has a grid field, and regardless of the status combinations of the entries, the grid in the child entry still displays its data correctly.

#13

BoldMinded (Brian)

Comment has been marked private.

#14

LouWii D.

Hi there,

We finally found the issue, which wasn’t related to relationship but to grid.

We’re using grid to add several slides to a slider entry. Those sliders were created before we installed Publisher. So when we were trying to view a draft blog post with a slider, as the slider didn’t have a draft (because it was created before Publisher install), it wouldn’t retrieve any grid rows. But we went through each slider, save them again (I know that Publisher will also save a draft version when publishing/saving content), then they would show up in draft mode.

I hope that my explanation is quite clear.

It’s resolved on my end. 😊

Login to reply