diff --git a/module/custom/model.php b/module/custom/model.php index 19d4bf18e3..d36ca494f9 100644 --- a/module/custom/model.php +++ b/module/custom/model.php @@ -1230,7 +1230,7 @@ class customModel extends model */ public function hasDeliverableData(): int { - if(in_array($this->config->edition, array('max', 'ipd'))) return (int)$this->dao->select('*')->from(TABLE_DELIVERABLE)->where('deleted')->eq('0')->count(); + if(in_array($this->config->edition, array('max', 'ipd'))) return (int)$this->dao->select('*')->from(TABLE_PROJECTDELIVERABLE)->count(); return 0; }