فهرست منبع

Fix getLocations() method

Alan Lam 8 سال پیش
والد
کامیت
568b91c475
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      engine/project.php

+ 2 - 2
engine/project.php

@@ -24,8 +24,8 @@ class Project extends Model {
 	}
 
 	public function getLocations() {
-		$links = ProjectLocation::query(["project_id" => $this->id]);
-		return Location::query(["id" => array_column($links, "location_id")]);
+		$tests = $this->getTests();
+		return Location::query(["id" => array_column($tests, "location_id")]);
 	}
 
 	public function getDisplayAgeRange() {