mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Merge pull request #127 from YunoHost/fix-checkbox
[fix] Ensure checkbox is not required for boolean fields
This commit is contained in:
commit
b17f1ebdce
1 changed files with 3 additions and 0 deletions
|
@ -167,6 +167,9 @@
|
||||||
|
|
||||||
// 'default' is used as value, so we need to force it for checkboxes.
|
// 'default' is used as value, so we need to force it for checkboxes.
|
||||||
data.manifest.arguments.install[k].default = 1;
|
data.manifest.arguments.install[k].default = 1;
|
||||||
|
|
||||||
|
// Checkbox should not be required to be unchecked
|
||||||
|
data.manifest.arguments.install[k].required = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// 'password' type input.
|
// 'password' type input.
|
||||||
|
|
Loading…
Reference in a new issue