Title: Read-Only fields getting deleted.
Last modified: August 20, 2016

---

# Read-Only fields getting deleted.

 *  Resolved [petker](https://wordpress.org/support/users/petker/)
 * (@petker)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/read-only-fields-getting-deleted/)
 * I’ve stumbled across some odd behavior when working with the record update form.
   The form holds some fields, that are editable for the user and some fields are
   locked, using the Read-only in the manage data fields section.
 * When the user presses the save button on the form, the read only fields are deleted.
 * [http://wordpress.org/extend/plugins/participants-database/](http://wordpress.org/extend/plugins/participants-database/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/read-only-fields-getting-deleted/#post-3427258)
 * petker,
 * Thanks for finding that. I’ll be issuing a fix in the next update.
 * The fix will be this: On line 856 of participants_database.php is:
 * `$where = 'WHERE g.display = 1 ';`
 * This gets changed to:
 * `$where = 'WHERE g.display = 1 AND v.readonly = 0';`

Viewing 1 replies (of 1 total)

The topic ‘Read-Only fields getting deleted.’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Roland Barker](https://wordpress.org/support/users/xnau/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/read-only-fields-getting-deleted/#post-3427258)
 * Status: resolved