fix - remove Untitled default value on standard name field (#14282)
Enable unique constraint creation on name standard field. Null values are handled in front with 'Untitled'. Need to migrate fieldMetadata default value on all custom objects ? Tested : - Toggle on/off uniqueness on standard name field of standard/custom object - Create new custom text field and toggle on/off uniqueness
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ export const buildDefaultFieldsForCustomObject = (
|
||||
isCustom: false,
|
||||
isUIReadOnly: false,
|
||||
workspaceId,
|
||||
defaultValue: "'Untitled'",
|
||||
defaultValue: "''",
|
||||
},
|
||||
{
|
||||
id: v4(),
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ export const buildDefaultFlatFieldMetadatasForCustomObject = ({
|
||||
isCustom: false,
|
||||
isSystem: false,
|
||||
isUIReadOnly: false,
|
||||
defaultValue: "'Untitled'",
|
||||
defaultValue: "''",
|
||||
|
||||
createdAt,
|
||||
updatedAt: createdAt,
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ export class WorkspaceMigrationFactory {
|
||||
{
|
||||
factory: this.basicColumnActionFactory,
|
||||
options: {
|
||||
defaultValue: '',
|
||||
defaultValue: "''",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user