* Fallback code for bug#29896.

This commit is contained in:
xieqiyu
2022-11-16 17:19:43 +08:00
parent 6b8fba345d
commit 679f2641aa
2 changed files with 0 additions and 3 deletions
-1
View File
@@ -88,7 +88,6 @@ class programModel extends model
$dao = $this->dao->select('id, name, program')->from(TABLE_PRODUCT)
->where('deleted')->eq(0)
->andWhere('vision')->eq($this->config->vision)
->beginIF($programID !== '')->andWhere('program')->eq($programID)->fi()
->beginIF($shadow !== 'all')->andWhere('shadow')->eq((int)$shadow)->fi()
->beginIF($mode == 'assign')->andWhere('program')->eq($programID)->fi()
->beginIF(strpos($status, 'noclosed') !== false)->andWhere('status')->ne('closed')->fi()
-2
View File
@@ -160,10 +160,8 @@ function setParentProgram(parentProgram)
var selectedProduct = $(this).find('[name^=products]').val();
var selectedBranch = $(this).find('[name^=branch]').val();
var selectedPlan = $('#plan' + index ).find('[name^=plans]').val();
var newProductHtml = $(this).find('span.input-group-addon');
$(this).html(productSelectHtml);
$(this).append(newProductHtml);
$(this).find('[name^=products]').attr('name', 'products[' + index + ']').attr('id', 'products' + index).attr('data-branch', selectedBranch).attr('data-plan', selectedPlan);
$(this).find('[name^=products]').val(selectedProduct).chosen().change();
});