Commits

Caleb Smith committed bfffa15

Bug fix: Approve time sheet link is available if any verified entries exist

  • Participants
  • Parent commits bb502d8

Comments (0)

Files changed (1)

timepiece/views.py

         show_verify = unverified_count != 0
 
     if request.user.has_perm('timepiece.edit_person_time_sheet'):
-        show_approve = verified_count == total_statuses and total_statuses != 0
+        show_approve = verified_count + approved_count == total_statuses \
+        and verified_count > 0 and total_statuses != 0
 
     context = {
         'show_verify': show_verify,