Opened 14 years ago
Closed 14 years ago
#3041 closed defect (bug) (fixed)
Component Settings Cannot Save
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | 1.5 | |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
Because of the way the code handles disabling components, it will not save disabled components. It tries to check if the submitted value for the component's checkbox does not equal 1; unfortunately, browsers do not send a value at all for checkboxes that aren't checked. So if I'm trying to disable the forum component, for example, the $_POSTbp_components? array simply does not contain an item with the key 'bp-forums.php'. Will attach a patch momentarily.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
This patch creates a function to return all available components (disabled and enabled); when disabling components, we need to check against a centralized list of components to know what should be disabled.