caipin před 5 roky
rodič
revize
ffc87aaa90

+ 2 - 2
protected/controller/ReceiptExtendController.php

@@ -2720,10 +2720,10 @@ class ReceiptExtendController extends DooController {
     	$selectedSummary=file_get_contents("protected/config/receipt/summary.conf.ini");
     	$selectedSummary=explode(',', $selectedSummary);
     	foreach ($categoryList as $key=>$value){
-    		$categoryList[$key]['checked']=false;
+    		$categoryList[$key]['checked']='';
     		foreach ($selectedSummary as $v){
     			if($value['cidKey']==$v){
-    				$categoryList[$key]['checked']=true;
+    				$categoryList[$key]['checked']='checked';
     				break;
     			}
     		}

+ 1 - 1
protected/view/receipt/receiptSummaryStatisticsByAgency.html

@@ -101,7 +101,7 @@
 		    </div>
 		    <div class="modal-body">
 		    <!-- loop categoryList -->
-		    	<label class="checkbox inline"><input type="checkbox" name="cidKey[]" checked="{{categoryList' value.checked}}" value="{{categoryList' value.cidKey}}">{{categoryList' value.title}}</label>
+		    	<label class="checkbox inline"><input type="checkbox" name="cidKey[]" {{categoryList' value.checked}} value="{{categoryList' value.cidKey}}">{{categoryList' value.title}}</label>
 		    <!-- endloop -->
 		    	
 		    </div>