Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix missing repo_label parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Feb 29, 2016
1 parent 7b2299d commit 1b054e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/plugins/action.share/res/react/model/ShareModel.js
Expand Up @@ -584,7 +584,6 @@
}else if(this.getPublicLinks().length){
params["enable_public_link"] = "true";
}
params['repo_label'] = this._node.getLabel();
params["file"] = this._node.getPath();
if(this._data['repositoryId']){
params['repository_id'] = this._data['repositoryId'];
Expand All @@ -593,6 +592,9 @@
params['create_guest_user'] = 'true';
}
this._globalsAsParameters(params);
if(!params['repo_label']){
params['repo_label'] = this._node.getLabel();
}

var publicLinks = this.getPublicLinks();
if(publicLinks.length){
Expand Down

0 comments on commit 1b054e3

Please sign in to comment.