Skip to content
Snippets Groups Projects
Commit a98f6bfe authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #22654 refacto

parent 55124424
Branches
Tags
3 merge requests!896Master,!792Dev#22657 pnb display user account,!783Dev#22657 pnb display user account
......@@ -120,7 +120,7 @@ class Class_Album_UsageConstraint extends Storm_Model_Abstract {
public function isLoanable() {
return $this->hasAvailableLoanUsers() && $this->hasAvailableQuantity();
return $this->getAlbum()->getUsageConstraints()->isAValidOffer() && $this->hasAvailableLoanUsers() && $this->hasAvailableQuantity();
}
......
......@@ -72,7 +72,7 @@ class Class_Album_UsageConstraints extends Storm_Model_Collection_Abstract {
public function isLoanable() {
return $this->isAValidOffer() && $this->getLoanConstraint()->isLoanable();
return $this->getLoanConstraint()->isLoanable();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment