mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
parent
0d6aa799f3
commit
13c655344a
@ -120,10 +120,11 @@ export function createModel (builder: Builder): void {
|
||||
{
|
||||
hidden: false,
|
||||
objectClass: request.class.Request,
|
||||
txClasses: [core.class.TxCreateDoc],
|
||||
txClasses: [core.class.TxCreateDoc, core.class.TxUpdateDoc],
|
||||
field: 'requested',
|
||||
generated: false,
|
||||
group: request.ids.RequestNotificationGroup,
|
||||
label: request.string.Requested,
|
||||
label: request.string.Request,
|
||||
allowedForAuthor: true,
|
||||
providers: {
|
||||
[notification.providers.PlatformNotification]: true
|
||||
@ -136,7 +137,7 @@ export function createModel (builder: Builder): void {
|
||||
builder,
|
||||
request.class.Request,
|
||||
request.ids.RequestNotificationGroup,
|
||||
[],
|
||||
['requested'],
|
||||
['comments', 'approved', 'rejected', 'status']
|
||||
)
|
||||
|
||||
|
@ -688,7 +688,10 @@ async function getNewCollaborators (
|
||||
if (ops.$push !== undefined) {
|
||||
for (const key in ops.$push) {
|
||||
if (mixin.fields.includes(key)) {
|
||||
const value = (ops.$push as any)[key]
|
||||
let value = (ops.$push as any)[key]
|
||||
if (typeof value !== 'string') {
|
||||
value = value.$each
|
||||
}
|
||||
const newCollabs = await getKeyCollaborators(doc, value, key, control)
|
||||
if (newCollabs !== undefined) {
|
||||
for (const newCollab of newCollabs) {
|
||||
|
Loading…
Reference in New Issue
Block a user