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: Relationship field, inside grid, changes value when returning back to entry edit.

Status Resolved
Add-on / Version Publisher 1.6.3
Severity
EE Version 2.10.1

Kieran McClung

May 15, 2015

Description:
When you publish an entry with a grid field, which contains a relationship field and has multiple rows, upon returning to the entry the values change to the first entry.

Detailed steps to reproduce the issue:
1. Create two channels (Product & Client for example)
2. Assign a grid field to one channel (Product) and add a relationship field to the grid.
3. Point the relationship to the other channel (Client).
4. Publish multiple entries in the related channel (Client).
5. Create a new entry in the first channel (Product).
6. Inside this entry add two grid rows and choose two separate related entries.
7. Publish the entry and check the live site.
8. Return back to the entry and check the relationship within the grid.

Result:
The relationship dropdowns default to the first selected relationship although on the live site the content is displaying as intended.

It’s worth noting to that this doesn’t appear to be happening if only one grid row is present, only when multiple grid rows are created.

Not sure if it’s related to https://boldminded.com/support/ticket/1071 but mine seems to differ slightly.

Thank you.

#1

BoldMinded (Brian)

Thanks for the detailed report, but I have a couple questions:

Do you have persistent Grid/Matrix setting turned on? Do you have persistent Relationships setting turned on? Are you going through these steps in your default language or a secondary language? Do you have a translation of the entry in more than 1 languages?

#2

BoldMinded (Brian)

Comment has been marked private.

#3

Kieran McClung

Hello again, I hope you’re well.

thank you for your prompt reply and apologies for my lack of one, I wasn’t in the office during the weekend.

Do you have persistent Grid/Matrix setting turned on? I do yes.

Do you have persistent Relationships setting turned on? I do yes.

Are you going through these steps in your default language or a secondary language? Just in the default language at the moment.

Do you have a translation of the entry in more than 1 languages? My development site has a translation for the entry however in the basic test site (details attached) there isn’t a second language set up.

I have also tried the new build and unfortunately the problem still persists. I tried with both the existing entry and creating a new one but no such luck I’m afraid.

#4

BoldMinded (Brian)

Would you mind taking a video of this? I’m not able to replicate. Also, is Publisher the only add-on installed? If not, please replicate it in a clean EE environment with only Publisher installed. Need to rule out possible conflicts.

#5

Kieran McClung

Comment has been marked private.

#6

BoldMinded (Brian)

Thanks for the video, that helps. I guess I missed the part about it being a single drop down field, though I’m not sure Publisher cares about that. Anyway, I’ll take a look at it one night this week and get back to you.

#7

Kieran McClung

Thanks again for the quick reply. Apologies for missing out that detail. If you need any more information though just shout and I’ll get it over to you.

#8

Kieran McClung

Comment has been marked private.

#9

BoldMinded (Brian)

I was planning on looking into it tonight, but I can’t guarantee a fix. The Relationship inside of Grid fields has proven challenging. Something was changed in a recent version of EE and I have to refactor code.

#10

BoldMinded (Brian)

Comment has been marked private.

#11

Kieran McClung

Works perfectly now. Thank you very much for your help!

Login to reply