Body: <p>We have a site on 5.8 D7</p>
  
  <p>With a function to batch update contact reference fields in grants</p>
  
  <p>The field works fine when editting a grant record, but shows the message "loading failed" when updating via profile. This is a function the site has had for at east two years, and was working prior to the 5.8 upgrade. </p>
  
  <p><a href="https://i.sstatic.net/5fW3p.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5fW3p.png" alt="Screenshot of contact ref field not loading"></a></p>
  
  <p>Cannot recreate on sandbox- can't add grant fields to a profile</p>
  
  <p>Anyone seen something similar?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-13T18:04:24.247Z
Comments.Text: not quite following. why can't you replicate on sandbox? do you have some custom stuff on your site?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-13T18:29:11.117Z
Comments.Text: Created the new custom data field fine.
  
  Went to create a new profile, and grant fields weren't presented as an option to select fields from
Comments.UserDisplayName: Craig Almond
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-13T20:36:22.710Z
Comments.Text: did you check if Contact Reference fields work for any entity via Batch Update by Profile - i just tried on Individuals on dmaster and nothing happened at all in the contact reference field
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-13T22:37:04.110Z
Comments.Text: Not on dmaster. (Just seen your cref profile)
  
  Did create something similar on local site this afternoon. But then phone calls happened. And I got pulled on to something else.
  
  Contact reference fields work ok on the contact record, and profiles behave as expected in preview. Look to be not working in batch update mode.
Comments.UserDisplayName: Craig Almond
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-13T22:40:48.077Z
Comments.Text: Ok. Glad it's not just me.
  
  Will raise in the issues queue tomorrow.
Comments.UserDisplayName: Craig Almond
Tags: <profile><civigrant><contact-reference>
Title: Custom field for grants- type is contact reference, not working in profile when batch updating
ThreadText: # Custom field for grants- type is contact reference, not working in profile when batch updating
  
  (Asked by: username_0 on 2019-02-13)
  
  We have a site on 5.8 D7
  
  With a function to batch update contact reference fields in grants
  
  The field works fine when editting a grant record, but shows the message "loading failed" when updating via profile. This is a function the site has had for at east two years, and was working prior to the 5.8 upgrade.
  
  [![Screenshot of contact ref field not loading](https://i.sstatic.net/5fW3p.png)](https://i.sstatic.net/5fW3p.png)
  
  Cannot recreate on sandbox- can't add grant fields to a profile
  
  Anyone seen something similar?
  
  **Tags:** profile, civigrant, contact-reference
  
  > **Comments:**
  > **username_1**: not quite following. why can't you replicate on sandbox? do you have some custom stuff on your site?  
  > **username_0**: Created the new custom data field fine.  Went to create a new profile, and grant fields weren't presented as an option to select fields from  
  > **username_1**: did you check if Contact Reference fields work for any entity via Batch Update by Profile - i just tried on Individuals on dmaster and nothing happened at all in the contact reference field  
  > **username_0**: Not on dmaster. (Just seen your cref profile)  Did create something similar on local site this afternoon. But then phone calls happened. And I got pulled on to something else.  Contact reference fields work ok on the contact record, and profiles behave as expected in preview. Look to be not working in batch update mode.  
  > **username_0**: Ok. Glad it's not just me.  Will raise in the issues queue tomorrow.  
  
  ---
  
  ## 0 answers
  
  