Skip to content

Commit

Permalink
[IMP] pivot: disable automatic autofill
Browse files Browse the repository at this point in the history
FP request: when applying a data table automatically to pivots (and to lists),
disable the "autofill formulas", this way when you copy/paste some of the
data to a new column adjacent it doesn't mess everything up.

closes #5126

Task: 4256700
X-original-commit: f519934
Signed-off-by: Pierre Rousseau (pro) <[email protected]>
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
  • Loading branch information
LucasLefevre committed Oct 24, 2024
1 parent 490b5cd commit 426c232
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export const PIVOT_TABLE_CONFIG = {
bandedRows: true,
bandedColumns: false,
styleId: "TableStyleMedium5",
automaticAutofill: true,
automaticAutofill: false,
};

export const DEFAULT_CURRENCY: Currency = {
Expand Down
4 changes: 2 additions & 2 deletions tests/pivots/pivot_menu_items.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ describe("Pivot reinsertion menu item", () => {
})
).toMatchObject({
range: { zone: toZone("B8") },
config: { numberOfHeaders: 1, automaticAutofill: true },
config: { numberOfHeaders: 1, automaticAutofill: false },
type: "dynamic",
});
});
Expand Down Expand Up @@ -494,7 +494,7 @@ describe("Pivot reinsertion menu item", () => {
})
).toMatchObject({
range: { zone: toZone("B8:C11") },
config: { numberOfHeaders: 1, automaticAutofill: true },
config: { numberOfHeaders: 1, automaticAutofill: false },
type: "static",
});
});
Expand Down

0 comments on commit 426c232

Please sign in to comment.