diff --git a/application/Preordercampaign/Preordercampaign.php b/application/Preordercampaign/Preordercampaign.php index e446155d7..bdaec2012 100644 --- a/application/Preordercampaign/Preordercampaign.php +++ b/application/Preordercampaign/Preordercampaign.php @@ -125,7 +125,7 @@ class Preordercampaign extends mfBaseModel { if($this->$name == null) { if($name == "workorder_count") { - $wo_count = PreorderModel::count(["rimo_workorder" => true, "preordercampaign_id" => $this->id]); + $wo_count = PreorderModel::countActive(["rimo_workorder" => true, "preordercampaign_id" => $this->id]); if($wo_count) { $this->workorder_count = $wo_count; }