#6233 - Disabled tick boxes will not POST their value

  • By
  • Added
  • 22 views
Identifier #6233
Issue type Minor issue (breaks specific functionality)
Title Disabled tick boxes will not POST their value
Status Completed
Tags

Roadmap: v11 (custom)

Handling member PDStig
Version 11 beta7
Addon core_cns
Description This is due to an HTML quirk where disabled checkboxes (to prevent changing) do not POST their value, and additionally, checkboxes do not support readonly.

This hotfix adds the 'disabled_' prefix to the name of checkboxes which are disabled. And it adds a hidden input with the actual name of the checkbox and its default value, which will get POSTed and read by the form handler.
Steps to reproduce

Funded? No
Commits

Fixed MANTIS-6233 (Disabled tick boxes will not POST their value) (fdef34e4) · Commits · Composr ecosystem / Composr · GitLab

The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated