Commit c6e70626 authored by AnthonyVMDev2's avatar AnthonyVMDev2

Personnalisez discussion okay

parent 777d3154
Pipeline #42114 passed with stage
in 51 seconds
......@@ -59,7 +59,12 @@ root.controller('ChatPopupNewCtrl', ['$scope', '$chatFactory', "$chatEventsFacto
chatCtrl.newDiscussion = function () {
var projectId = $(projectSelected).val();
if(chatCtrl.newElement.visibility == "project"){
var projectId = $(projectSelected).val();
} else {
var projectId = 0;
}
var discussion = {ownerId: session.user, projectId: projectId, label: chatCtrl.newElement.label};
//angular.copy(chatCtrl.newElement,discussion);
discussion.members = chatCtrl.newElement.listRecipients.map(function (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment