mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Fix Calendar new event opened with wrong owner
This commit is contained in:
parent
60def94d07
commit
1b14b2ad31
@ -449,12 +449,20 @@ app.classes.calendar = AppJS.extend(
|
|||||||
{
|
{
|
||||||
ownerId = 'r' + ownerId;
|
ownerId = 'r' + ownerId;
|
||||||
}
|
}
|
||||||
that.egw.open(null, 'calendar', 'add', {
|
|
||||||
date: timestamp[0],
|
var eventInfo =
|
||||||
hour: timestamp[1],
|
{
|
||||||
minute: timestamp[2],
|
date: timestamp[0],
|
||||||
owner: ownerId
|
hour: timestamp[1],
|
||||||
}, '_blank');
|
minute: timestamp[2]
|
||||||
|
};
|
||||||
|
|
||||||
|
if (ownerId != 0)
|
||||||
|
{
|
||||||
|
$j(eventInfo).extend(eventInfo,{owner: ownerId});
|
||||||
|
}
|
||||||
|
|
||||||
|
that.egw.open(null, 'calendar', 'add', eventInfo , '_blank');
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user