This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Martin Brennan 357186ab7e
FIX: User option fields definition was being mutated on save (#15837)
In the commit d8bf2810ff we hoisted
the userOptionFields array to a module-level variable, but kept
the code inside save() the same. This causes an issue where if
save() is called twice on the same user with some array of user
option fields, the userOptionFields array is mutated, which means
the second save is likely not saving the fields intended.

This commit fixes the issue by not mutating the array. We cannot
change them into consts though, because we have an API to add more
items to the array.
2022-02-07 16:58:27 +10:00
..
app FIX: User option fields definition was being mutated on save (#15837) 2022-02-07 16:58:27 +10:00
config DEV: Allow ember server --environment production to be used (#15431) 2021-12-31 12:26:23 +00:00
lib DEV: Improve Ember module shims under Ember CLI (#15795) (#15806) 2022-02-03 17:36:32 +00:00
public/assets/scripts DEV: Improve Ember module shims under Ember CLI (#15795) (#15806) 2022-02-03 17:36:32 +00:00
tests FIX: User option fields definition was being mutated on save (#15837) 2022-02-07 16:58:27 +10:00
.ember-cli REFACTOR: Sync up master with changes for Ember-CLI (#11671) 2021-01-12 10:13:21 -05:00
.npmrc DEV: Prevent npm usage (#13945) 2021-08-04 22:04:58 +02:00
ember-cli-build.js DEV: Improve test paths pattern for Ember CLI. 2022-02-07 09:22:15 +08:00
package.json PERF: Update ember-auto-import (#15814) 2022-02-04 11:00:51 +00:00
testem.js DEV: Update plugin JS loading in Ember CLI testem environment 2022-01-18 10:16:29 +00:00