Ver código fonte

Fix getLocations() method

Alan Lam 8 anos atrás
pai
commit
568b91c475
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      engine/project.php

+ 2 - 2
engine/project.php

@@ -24,8 +24,8 @@ class Project extends Model {
 	}
 	}
 
 
 	public function getLocations() {
 	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() {
 	public function getDisplayAgeRange() {