roadmap
roadmap copied to clipboard
Fix handling of `attrs[:managed]` + Refactor `OrgsController#admin_update`
Fixes #3528
Changes proposed in this PR:
- This change resolves issue #3528 by preventing the updating of
@org.managedwhenattrs[:managed]is missing. Prior to this change, theif attrs.key?(:managed)was not present. But it was necessary, because that key is not present when a super user clicks "Save" on the "Request Feedback" page. - As a result, if
attrs[:managed]was not present, thenattrs[:managed] = (attrs[:managed] == '1')would evaluate false, andif @org.update(attrs)(line 81) would subsequently update@org.managedto false in the db.