mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge branch 'feat-database-indexing' of https://github.com/appwrite/appwrite into feat-db-main-rebase
This commit is contained in:
@@ -90,12 +90,21 @@
|
||||
}
|
||||
}
|
||||
else if ('checkbox' === type) { // Checkbox
|
||||
if (!Array.isArray(json[name])) {
|
||||
json[name] = [];
|
||||
}
|
||||
const byKey = !!element.getAttribute('data-by-key');
|
||||
if (byKey) {
|
||||
if (!Array.isArray(json[name])) {
|
||||
json[name] = [];
|
||||
}
|
||||
|
||||
if (element.checked) {
|
||||
json[name].push(element.value);
|
||||
if (element.checked) {
|
||||
json[name].push(element.value);
|
||||
}
|
||||
} else {
|
||||
if (Array.isArray(json[name])) {
|
||||
json[name].push(element.checked);
|
||||
} else {
|
||||
json[name] = element.checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ('file' === type) { // File upload
|
||||
|
||||
Reference in New Issue
Block a user