mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Fix editing built-in badges after removing _.include
We want to send the unprotected fields to the server. Corrects 4c8cfe0f
This commit is contained in:
@@ -55,7 +55,7 @@ export default Ember.Controller.extend(BufferedContent, {
|
||||
|
||||
if (this.get("buffered.system")) {
|
||||
var protectedFields = this.get("protectedSystemFields") || [];
|
||||
fields = _.filter(fields, f => protectedFields.includes(f));
|
||||
fields = _.filter(fields, f => !protectedFields.includes(f));
|
||||
}
|
||||
|
||||
this.set("saving", true);
|
||||
|
||||
Reference in New Issue
Block a user