caipin %!s(int64=5) %!d(string=hai) anos
pai
achega
857368fdb8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      protected/model/invoiceReceivables.php

+ 1 - 1
protected/model/invoiceReceivables.php

@@ -534,7 +534,7 @@ class invoiceReceivables extends DooModel {
 // 				';
 		
 		if(!empty($con)){
-			$con=' where '.$con;
+			$con=' where 1 '.$con;
 		}
 		
 		$sql='select * from '.$this->_table.' as a '.$con.' ORDER BY '.$descField.' '.$desc.' limit '.$limit;