Files
upstream-espocrm/application/Espo/Modules/Crm/Resources/metadata/entityDefs/KnowledgeBaseArticle.json
upstream-mirror 7cc7e6b4f3
Some checks failed
Test / Test on PHP 8.3 (push) Failing after 5s
Test / Test on PHP 8.4 (push) Failing after 4s
Test / Test on PHP 8.5 (push) Failing after 3s
TypeScript static analysis / TypeScript check (push) Failing after 14s
Test Integration on MySQL / Test on PHP 8.3 (push) Failing after 1s
Test Integration on MySQL / Test on PHP 8.5 (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 fix (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 master (push) Failing after 1s
snapshot of https://github.com/espocrm/espocrm.git (master, 2026-09-18; blobs > 131072B omitted)
2026-09-18 04:19:15 +05:00

166 lines
4.4 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true,
"pattern": "$noBadCharacters"
},
"status": {
"type": "enum",
"options": [
"Draft",
"In Review",
"Published",
"Archived"
],
"style": {
"Published": "primary",
"Archived": "info"
},
"displayAsLabel": true,
"labelType": "state",
"view": "crm:views/knowledge-base-article/fields/status",
"default": "Draft",
"fieldManagerAdditionalParamList": [
{
"name": "activeOptions",
"view": "views/admin/field-manager/fields/not-actual-options"
}
],
"activeOptions": ["Published"],
"customizationOptionsReferenceDisabled": true,
"audited": true
},
"language": {
"type": "enum",
"view": "crm:views/knowledge-base-article/fields/language",
"customizationOptionsDisabled": true,
"customizationOptionsReferenceDisabled": true,
"audited": true
},
"type": {
"type": "enum",
"options": ["Article"],
"default": "Article"
},
"portals": {
"type": "linkMultiple",
"tooltip": true,
"audited": true
},
"publishDate": {
"type": "date",
"audited": true
},
"expirationDate": {
"type": "date",
"after": "publishDate",
"audited": true
},
"order": {
"type": "int",
"disableFormatting": true,
"textFilterDisabled": true
},
"description": {
"type": "text"
},
"createdAt": {
"type": "datetime",
"readOnly": true,
"fieldManagerParamList": [
"useNumericFormat"
]
},
"modifiedAt": {
"type": "datetime",
"readOnly": true,
"fieldManagerParamList": [
"useNumericFormat"
]
},
"createdBy": {
"type": "link",
"readOnly": true,
"fieldManagerParamList": [],
"view": "views/fields/user"
},
"modifiedBy": {
"type": "link",
"readOnly": true,
"fieldManagerParamList": [],
"view": "views/fields/user"
},
"assignedUser": {
"type": "link",
"view": "views/fields/assigned-user",
"audited": true
},
"teams": {
"type": "linkMultiple",
"view": "views/fields/teams"
},
"categories": {
"type": "linkMultiple",
"view": "views/fields/link-multiple-category-tree"
},
"attachments": {
"type": "attachmentMultiple"
},
"body": {
"type": "wysiwyg"
},
"bodyPlain": {
"type": "text",
"readOnly": true,
"directUpdateDisabled": true,
"fieldManagerParamList": []
}
},
"links": {
"cases": {
"type": "hasMany",
"entity": "Case",
"foreign": "articles"
},
"portals": {
"type": "hasMany",
"entity": "Portal",
"foreign": "articles"
},
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
},
"assignedUser": {
"type": "belongsTo",
"entity": "User"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "entityTeam",
"layoutRelationshipsDisabled": true
},
"categories": {
"type": "hasMany",
"foreign": "articles",
"entity": "KnowledgeBaseCategory"
}
},
"collection": {
"orderBy": "order",
"order": "asc",
"textFilterFields": [
"name",
"bodyPlain"
],
"fullTextSearch": true
},
"optimisticConcurrencyControl": true
}