WordPress.org

Forums

Participants Database
[resolved] Read-Only fields getting deleted. (2 posts)

  1. petker
    Member
    Posted 2 years ago #

    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/

  2. xnau
    Member
    Plugin Author

    Posted 2 years ago #

    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';

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Participants Database
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic