Skip to content

Commit

Permalink
fixed columns, line and initialselected for checkbox_groups
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesGrimont committed Nov 7, 2024
1 parent e29b9f7 commit c26fc66
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions _c8oProject/mobilePages/BrowseTables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3710,6 +3710,15 @@ title: First page
const authentifiedUser = await page.callParentFunction("getAuthenticatedUser");
console.log("authentifiedUser: " + authentifiedUser + " source_owner: " + output.source_owner);
output.editorNotOwner = output.source_owner && output.source_owner != authentifiedUser;
try{
if (page.local.type == "checkbox_group" && output.column != undefined && output.line != undefined) {
output.value = output.column;
output.displayValue = output.line;
}
}
catch (e) {
}
return output;
} catch (e) {
Expand Down Expand Up @@ -3894,11 +3903,11 @@ title: First page
Object.keys(page.local.selectedColumns).forEach(item => {
conf.table_id_int = page.local.selectedColumns[item]["table_id"];
if (page.local.selectedColumns[item]["displayValue"]) {
conf.column = item;
conf.line = item;
conf.columns.push(item);
}
if (page.local.selectedColumns[item]["value"]) {
conf.line = item;
conf.column = item;
conf.columns.push(item);
}
})
Expand Down
2 changes: 1 addition & 1 deletion c8oProject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
contextTimeout: ${lib_baserow.context_timout=3600}
corsOrigin: =Origin
httpSessionTimeout: ${lib_baserow.session_timout=3600}
version: 1.1.0-beta8
version: 1.1.0-beta9
↓Baserow_API_spec [connectors.HttpConnector]: 🗏 connectors/Baserow_API_spec.yaml
↓MediaConnector [connectors.HttpConnector]: 🗏 connectors/MediaConnector.yaml
↓AdminLogin [sequences.GenericSequence]: 🗏 sequences/AdminLogin.yaml
Expand Down

0 comments on commit c26fc66

Please sign in to comment.