mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 13:35:04 +02:00
EQMS-1381 Use stored document code (#7595)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
@@ -50,8 +50,7 @@ import documents, {
|
||||
type ProjectMeta,
|
||||
ControlledDocumentState,
|
||||
DocumentState,
|
||||
getDocumentName,
|
||||
getDocumentId
|
||||
getDocumentName
|
||||
} from '@hcengineering/controlled-documents'
|
||||
import { type Request } from '@hcengineering/request'
|
||||
|
||||
@@ -583,7 +582,7 @@ export async function documentIdentifierProvider (client: Client, ref: Ref<Docum
|
||||
return ''
|
||||
}
|
||||
|
||||
return getDocumentId(document)
|
||||
return document.code
|
||||
}
|
||||
|
||||
export function documentCompareFn (doc1: Document, doc2: Document): number {
|
||||
|
||||
Reference in New Issue
Block a user