sowon4187 5 лет назад
Родитель
Сommit
c0c4a96114
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/webapp/WEB-INF/views/marketing/PlanTemplatePopupForm.html

+ 1 - 1
src/main/webapp/WEB-INF/views/marketing/PlanTemplatePopupForm.html

@@ -2146,7 +2146,7 @@ $(document).ready(function() {
 					$('#planTemplateForm input[name=goodsPlanContSq'+(i+1)+']').val(goodsList[i].planContSq);
 					$('#planTemplateForm input[name=goodsPlanContSq'+(i+1)+']').val(goodsList[i].planContSq);
 					$('#planTemplateForm input[name=goodsPlanContItemSq'+(i+1)+']').val(goodsList[i].planContItemSq);
 					$('#planTemplateForm input[name=goodsPlanContItemSq'+(i+1)+']').val(goodsList[i].planContItemSq);
 					
 					
-					if (goodsList[0].dispYn == 'Y') {
+					if (goodsList[i].dispYn == 'Y') {
 						$('#planTemplateForm input:checkbox[name=goodsDispYn'+(i+1)+']').prop('checked', true);
 						$('#planTemplateForm input:checkbox[name=goodsDispYn'+(i+1)+']').prop('checked', true);
 					}
 					}