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/tests/unit
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
..
controllers DEV: Minor cleanup of create-account tests (#14989) 2021-11-24 16:43:25 +01:00
ember DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
lib DEV: remove the includeMidFuture option on future-date-input (#15818) 2022-02-04 21:33:11 +04:00
mixins DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
models FIX: User option fields definition was being mutated on save (#15837) 2022-02-07 16:58:27 +10:00
services DEV: Automatically leave PresenceChannels when in the background (#15047) 2021-11-30 15:38:19 +11:00
utils DEV: drops jquery from scrolling-post-stream (#15313) 2021-12-17 14:52:42 +01:00
localization-test.js FIX: Translation overrides from fallback locale didn't work on client 2021-12-17 14:03:35 +01:00