simplify timesheet edit form if only one customer is existing (#443)
This commit is contained in:
@@ -35,10 +35,15 @@ class CustomerRepository extends AbstractRepository
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null|bool $visible
|
||||
* @return int
|
||||
*/
|
||||
public function countCustomer()
|
||||
public function countCustomer($visible = null)
|
||||
{
|
||||
if (null !== $visible) {
|
||||
return $this->count(['visible' => (int) $visible]);
|
||||
}
|
||||
|
||||
return $this->count([]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user