Answers.Body: <p>It looks like this was a bug in CiviCRM. I have written a fix and submitted a pull-request for review. Your testing and feedback can help expedite the review process to get it accepted into the codebase.</p>
  
  <p><a href="https://github.com/civicrm/civicrm-core/pull/12312" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/12312</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-15T09:24:52.660Z
Answers.Text: Many thanks for looking at this. I applied the changes to the test site, and they work when logged in as an administrator, but produce another jQuery error (403 Forbidden) when not logged in as the administrator but with view, edit and delete privileges for the profile. You can see the new error at http://drupal.benmango.co.uk/civicrm/profile/edit?gid=14&reset=1&id=109. I added  a more detailed comment at https://github.com/civicrm/civicrm-core/pull/12312.
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-15T03:26:29.960Z
Answers.LastActivityDate: 2018-06-15T03:26:29.960Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>In my opinion, fixing the bug would be better than working around it. Are you able to reproduce the issue on a demo site? If so you could file a bug report and we could look into it.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-02T09:28:50.900Z
Answers.Text: Thanks very much for getting back to me. I'll see if I can reproduce it and get back to you.
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-05T14:57:11.933Z
Answers.Text: I have created a test site with a public proflle where you can see the error at http://drupal.benmango.co.uk/civicrm/profile/edit?gid=14&reset=1&id=109. As you will see the dropdowns don't work but the textarea does.
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-01T19:57:37.127Z
Answers.LastActivityDate: 2018-06-01T19:57:37.127Z
Answers.UserDisplayName: Coleman
Body: <p>I have created a profile where authenticated members can edit some custom fields which are part of a multivalue fieldset that I created. Everything works fine - the links to view, edit and delete all work ok. However, on the profile listings page itself the inline editing feature is not working for dropdown list custom fields, only for text and text area fields. When a user clicks on one of the dropdown fields, it simply dissappears and throws a jQuery error:</p>
  
  <pre><code>jquery.crmEditable.js:19 Uncaught TypeError: Cannot read property 'id' of undefined
      at n.fn.init.$.fn.crmEditableEntity (jquery.crmEditable.js:19)
      at HTMLDivElement.getData (jquery.crmEditable.js:204)
      at HTMLDivElement.&lt;anonymous&gt; (jquery.jeditable.min.js:17)
      at HTMLDivElement.dispatch (jquery.min.js?p9n09n:3)
      at HTMLDivElement.r.handle (jquery.min.js?p9n09n:3)
  </code></pre>
  
  <p>Is it possible to disable completely the inline editing for that profile form? Or perhaps for authenticated users? They can still edit the record by clicking on the edit button.</p>
  
  <p>I am using CiviCRM 4.7.28 with Drupal 7.59. </p>
  
Tags: <profile><jquery>
Title: Disable Inline Editing of Fields in Profile Form
ThreadText: # Disable Inline Editing of Fields in Profile Form
  
  (Asked by: username_0 on 2018-06-01)
  
  I have created a profile where authenticated members can edit some custom fields which are part of a multivalue fieldset that I created. Everything works fine - the links to view, edit and delete all work ok. However, on the profile listings page itself the inline editing feature is not working for dropdown list custom fields, only for text and text area fields. When a user clicks on one of the dropdown fields, it simply dissappears and throws a jQuery error:
  jquery.crmEditable.js:19 Uncaught TypeError: Cannot read property 'id' of undefined
      at n.fn.init.$.fn.crmEditableEntity (jquery.crmEditable.js:19)
      at HTMLDivElement.getData (jquery.crmEditable.js:204)
      at HTMLDivElement. (jquery.jeditable.min.js:17)
      at HTMLDivElement.dispatch (jquery.min.js?p9n09n:3)
      at HTMLDivElement.r.handle (jquery.min.js?p9n09n:3)
  
  Is it possible to disable completely the inline editing for that profile form? Or perhaps for authenticated users? They can still edit the record by clicking on the edit button.
  I am using CiviCRM 4.7.28 with Drupal 7.59.
  
  **Tags:** profile, jquery
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-06-15. Score: 2
  
  It looks like this was a bug in CiviCRM. I have written a fix and submitted a pull-request for review. Your testing and feedback can help expedite the review process to get it accepted into the codebase.
  
  <https://github.com/civicrm/civicrm-core/pull/12312>
  
  > **Comments:**
  > **username_0**: Many thanks for looking at this. I applied the changes to the test site, and they work when logged in as an administrator, but produce another jQuery error (403 Forbidden) when not logged in as the administrator but with view, edit and delete privileges for the profile. You can see the new error at http://drupal.benmango.co.uk/civicrm/profile/edit?gid=14&reset=1&id=109. I added  a more detailed comment at https://github.com/civicrm/civicrm-core/pull/12312.  
  
  ---
  
  ### Answer by username_1 on 2018-06-01. Score: 0
  
  In my opinion, fixing the bug would be better than working around it. Are you able to reproduce the issue on a demo site? If so you could file a bug report and we could look into it.
  
  > **Comments:**
  > **username_0**: Thanks very much for getting back to me. I'll see if I can reproduce it and get back to you.  
  > **username_0**: I have created a test site with a public proflle where you can see the error at http://drupal.benmango.co.uk/civicrm/profile/edit?gid=14&reset=1&id=109. As you will see the dropdowns don't work but the textarea does.  
  
  ---
  
  