Compare commits

...

3 Commits

Author SHA1 Message Date
Charles Bochet 8f11791be5 Bump version 2025-03-26 23:42:02 +01:00
Charles Bochet 3c1a9370dd Fix field options not updatable anymore (#11213)
As per title
2025-03-26 23:41:32 +01:00
Charles Bochet 09a08a1e0c Bump versions 2025-03-26 20:55:40 +01:00
8 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "twenty-e2e-testing",
"version": "0.50.0-canary",
"version": "0.44.19",
"description": "",
"author": "",
"private": true,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "twenty-emails",
"version": "0.50.0-canary",
"version": "0.44.19",
"description": "",
"author": "",
"private": true,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "twenty-front",
"version": "0.50.0-canary",
"version": "0.44.19",
"private": true,
"type": "module",
"scripts": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "twenty-server",
"version": "0.50.0-canary",
"version": "0.44.19",
"description": "",
"author": "",
"private": true,
@@ -75,7 +75,7 @@ export class BeforeUpdateOneField<T extends UpdateFieldInput>
locale?: keyof typeof APP_LOCALES,
): UpdateOneInputType<T> {
const update: StandardFieldUpdate = {};
const updatableFields = ['isActive', 'isLabelSyncedWithName'];
const updatableFields = ['isActive', 'isLabelSyncedWithName', 'options'];
const overridableFields = ['label', 'icon', 'description'];
const nonUpdatableFields = Object.keys(instance.update).filter(
@@ -109,6 +109,7 @@ export class BeforeUpdateOneField<T extends UpdateFieldInput>
this.handleActiveField(instance, update);
this.handleLabelSyncedWithNameField(instance, update);
this.handleStandardOverrides(instance, fieldMetadata, update, locale);
this.handleOptionsField(instance, update);
return {
id: instance.id,
@@ -116,6 +117,17 @@ export class BeforeUpdateOneField<T extends UpdateFieldInput>
};
}
private handleOptionsField(
instance: UpdateOneInputType<T>,
update: StandardFieldUpdate,
): void {
if (!isDefined(instance.update.options)) {
return;
}
update.options = instance.update.options;
}
private handleActiveField(
instance: UpdateOneInputType<T>,
update: StandardFieldUpdate,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "twenty-shared",
"version": "0.50.0-canary",
"version": "0.44.19",
"main": "dist/twenty-shared.cjs.js",
"module": "dist/twenty-shared.esm.js",
"license": "AGPL-3.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "twenty-ui",
"version": "0.50.0-canary",
"version": "0.44.19",
"type": "module",
"main": "./src/index.ts",
"exports": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "twenty-website",
"version": "0.50.0-canary",
"version": "0.44.19",
"private": true,
"scripts": {
"nx": "NX_DEFAULT_PROJECT=twenty-website node ../../node_modules/nx/bin/nx.js",