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:
parent
ca84c06c59
commit
f993aca363
|
@ -55,7 +55,7 @@ export default Ember.Controller.extend(BufferedContent, {
|
||||||
|
|
||||||
if (this.get("buffered.system")) {
|
if (this.get("buffered.system")) {
|
||||||
var protectedFields = this.get("protectedSystemFields") || [];
|
var protectedFields = this.get("protectedSystemFields") || [];
|
||||||
fields = _.filter(fields, f => protectedFields.includes(f));
|
fields = _.filter(fields, f => !protectedFields.includes(f));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.set("saving", true);
|
this.set("saving", true);
|
||||||
|
|
Loading…
Reference in New Issue