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() {