Commit eb5b9c53 authored by Hermann's avatar Hermann
Browse files

remove rfid from patch if it is an empty value

parent fc5e877d
......@@ -18,6 +18,11 @@ export default class UserEdit extends EditView {
}).catch((error) => { console.log(error); });
}
beforeSubmit() {
if ('rfid' in this.form.data && !this.form.data.rfid) delete this.form.data.rfid;
this.submit();
}
view() {
const style = 'display: inline-block; vertical-align: top; padding-right: 80px';
return this.layout([
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment