Skip to content

Commit

Permalink
Storage requests fixed bug: default approval duration for yard projec…
Browse files Browse the repository at this point in the history
…ts should be 7 days. Bug set it to 2 days.
  • Loading branch information
chixor committed Nov 19, 2014
1 parent 692bb04 commit 594e7fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/project.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public function recentPost() {
}

public function automaticApprovalDuration() {
return ($this->getLocationId() == 'Yard') ? 7 : 2;
$location = new Location($this->getLocationId());
return ($location->getName() == 'Yard') ? 7 : 2;
}

public function hasExtension() {
Expand Down

0 comments on commit 594e7fe

Please sign in to comment.