* Fix bug of task #89149.
This commit is contained in:
@@ -41,7 +41,7 @@ function toggleAcl(acl, type)
|
||||
var moduleID = $('#module').val();
|
||||
if(moduleID.indexOf('_') >= 0) libID = moduleID.substr(0, moduleID.indexOf('_'));
|
||||
}
|
||||
if(acl == 'default' && $('#libTypewiki').attr('checked') != 'checked')
|
||||
if(acl == 'default' && ($('#libTypeapi').attr('checked') == 'checked' || libType == 'api'))
|
||||
{
|
||||
$('#whiteListBox').removeClass('hidden');
|
||||
$('#groupBox').removeClass('hidden');
|
||||
|
||||
@@ -206,7 +206,7 @@ class docModel extends model
|
||||
$execution = $this->loadModel('execution')->getByID($lib->execution);
|
||||
$lib->project = $execution->project;
|
||||
}
|
||||
if($this->post->libType) $lib->type = 'api';
|
||||
if($this->post->libType == 'api') $lib->type = 'api';
|
||||
|
||||
if($lib->acl == 'custom' or $lib->acl == 'private')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user