timeoff-management / timeoff-management-application

Simple yet powerful absence management software for small and medium size business (community edition)
https://TimeOff.Management
MIT License
957 stars 589 forks source link

Absences For Employee Page not loading #348

Open marct83 opened 5 years ago

marct83 commented 5 years ago

I have an odd issue. I updated to the most recent code. When I try and bring up an employees absences page once editing the employee it just returns me to back to the list of employees '/users/'. Any ideas what would cause this?

vpp commented 5 years ago

Anything in logs?

Thanks Pavlo

On 14 May 2019, at 23:08, marct83 notifications@github.com wrote:

I have an odd issue. I updated to the most recent code. When I try and bring up an employees absences page once editing the employee it just returns me to back to the list of employees '/users/'. Any ideas what would cause this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

marct83 commented 5 years ago

Nothing overly interesting. Can you take a look?

Logs Executing (default): SELECT "sid", "expires", "data", "createdAt", "updatedAt" FROM "Sessions" AS "Session" WHERE "Session"."sid" = 'LblFyUI797S6rB5KVIBhwDfPkZ9TMA-o'; GET /users/edit/5/absences/ 302 110.231 ms - 62 Executing (default): SELECT "id", "email", "password", "ldapUser", "name", "lastname", "activated", "admin", "auto_approve", "start_date", "end_date", "createdAt", "updatedAt", "companyId", "DepartmentId" FROM "Users" AS "User" WHERE "User"."id" = 3; Executing (default): SELECT "Company"."id", "Company"."name", "Company"."country", "Company"."start_of_new_year", "Company"."share_all_absences", "Company"."ldap_auth_enabled", "Company"."ldap_auth_config", "Company"."date_format", "Company"."company_wide_message", "Company"."mode", "Company"."timezone", "Company"."integration_api_enabled", "Company"."integration_api_token", "Company"."carry_over", "Company"."createdAt", "Company"."updatedAt", "users"."id" AS "users.id", "users"."email" AS "users.email", "users"."password" AS "users.password", "users"."ldapUser" AS "users.ldapUser", "users"."name" AS "users.name", "users"."lastname" AS "users.lastname", "users"."activated" AS "users.activated", "users"."admin" AS "users.admin", "users"."auto_approve" AS "users.auto_approve", "users"."start_date" AS "users.start_date", "users"."end_date" AS "users.end_date", "users"."createdAt" AS "users.createdAt", "users"."updatedAt" AS "users.updatedAt", "users"."companyId" AS "users.companyId", "users"."DepartmentId" AS "users.DepartmentId" FROM "Companies" AS "Company" LEFT OUTER JOIN "Users" AS "users" ON "Company"."id" = "users"."companyId" WHERE "Company"."id" = 1; Executing (default): SELECT "Company"."id", "Company"."name", "Company"."country", "Company"."start_of_new_year", "Company"."share_all_absences", "Company"."ldap_auth_enabled", "Company"."ldap_auth_config", "Company"."date_format", "Company"."company_wide_message", "Company"."mode", "Company"."timezone", "Company"."integration_api_enabled", "Company"."integration_api_token", "Company"."carry_over", "Company"."createdAt", "Company"."updatedAt", "leave_types"."id" AS "leave_types.id", "leave_types"."name" AS "leave_types.name", "leave_types"."color" AS "leave_types.color", "leave_types"."use_allowance" AS "leave_types.use_allowance", "leave_types"."limit" AS "leave_types.limit", "leave_types"."sort_order" AS "leave_types.sort_order", "leave_types"."createdAt" AS "leave_types.createdAt", "leave_types"."updatedAt" AS "leave_types.updatedAt", "leave_types"."companyId" AS "leave_types.companyId" FROM "Companies" AS "Company" LEFT OUTER JOIN "LeaveTypes" AS "leave_types" ON "Company"."id" = "leave_types"."companyId" WHERE "Company"."id" = 1 ORDER BY "leave_types"."sort_order" DESC, "leave_types"."name"; Executing (default): SELECT "id", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday", "created_at", "updated_at", "company_id", "user_id" FROM "schedule" AS "Schedule" WHERE ("Schedule"."user_id" = 3 OR "Schedule"."company_id" = 1); Executing (default): SELECT "Company"."id", "Company"."name", "Company"."country", "Company"."start_of_new_year", "Company"."share_all_absences", "Company"."ldap_auth_enabled", "Company"."ldap_auth_config", "Company"."date_format", "Company"."company_wide_message", "Company"."mode", "Company"."timezone", "Company"."integration_api_enabled", "Company"."integration_api_token", "Company"."carry_over", "Company"."createdAt", "Company"."updatedAt", "users"."id" AS "users.id", "users"."email" AS "users.email", "users"."password" AS "users.password", "users"."ldapUser" AS "users.ldapUser", "users"."name" AS "users.name", "users"."lastname" AS "users.lastname", "users"."activated" AS "users.activated", "users"."admin" AS "users.admin", "users"."auto_approve" AS "users.auto_approve", "users"."start_date" AS "users.start_date", "users"."end_date" AS "users.end_date", "users"."createdAt" AS "users.createdAt", "users"."updatedAt" AS "users.updatedAt", "users"."companyId" AS "users.companyId", "users"."DepartmentId" AS "users.DepartmentId", "users.department"."id" AS "users.department.id", "users.department"."name" AS "users.department.name", "users.department"."allowance" AS "users.department.allowance", "users.department"."include_public_holidays" AS "users.department.include_public_holidays", "users.department"."is_accrued_allowance" AS "users.department.is_accrued_allowance", "users.department"."createdAt" AS "users.department.createdAt", "users.department"."updatedAt" AS "users.department.updatedAt", "users.department"."companyId" AS "users.department.companyId", "users.department"."bossId" AS "users.department.bossId", "users.my_leaves"."id" AS "users.my_leaves.id", "users.my_leaves"."status" AS "users.my_leaves.status", "users.my_leaves"."employee_comment" AS "users.my_leaves.employee_comment", "users.my_leaves"."approver_comment" AS "users.my_leaves.approver_comment", "users.my_leaves"."decided_at" AS "users.my_leaves.decided_at", "users.my_leaves"."date_start" AS "users.my_leaves.date_start", "users.my_leaves"."day_part_start" AS "users.my_leaves.day_part_start", "users.my_leaves"."date_end" AS "users.my_leaves.date_end", "users.my_leaves"."day_part_end" AS "users.my_leaves.day_part_end", "users.my_leaves"."createdAt" AS "users.my_leaves.createdAt", "users.my_leaves"."updatedAt" AS "users.my_leaves.updatedAt", "users.my_leaves"."userId" AS "users.my_leaves.userId", "users.my_leaves"."approverId" AS "users.my_leaves.approverId", "users.my_leaves"."leaveTypeId" AS "users.my_leaves.leaveTypeId", "users.my_leaves.leave_type"."id" AS "users.my_leaves.leave_type.id", "users.my_leaves.leave_type"."name" AS "users.my_leaves.leave_type.name", "users.my_leaves.leave_type"."color" AS "users.my_leaves.leave_type.color", "users.my_leaves.leave_type"."use_allowance" AS "users.my_leaves.leave_type.use_allowance", "users.my_leaves.leave_type"."limit" AS "users.my_leaves.leave_type.limit", "users.my_leaves.leave_type"."sort_order" AS "users.my_leaves.leave_type.sort_order", "users.my_leaves.leave_type"."createdAt" AS "users.my_leaves.leave_type.createdAt", "users.my_leaves.leave_type"."updatedAt" AS "users.my_leaves.leave_type.updatedAt", "users.my_leaves.leave_type"."companyId" AS "users.my_leaves.leave_type.companyId" FROM "Companies" AS "Company" LEFT OUTER JOIN "Users" AS "users" ON "Company"."id" = "users"."companyId" LEFT OUTER JOIN "Departments" AS "users.department" ON "users"."DepartmentId" = "users.department"."id" LEFT OUTER JOIN "Leaves" AS "users.my_leaves" ON "users"."id" = "users.my_leaves"."userId" AND "users.my_leaves"."status" IN (2, 1, 4) AND ("users.my_leaves"."date_start" BETWEEN '2019-01-01' AND '2019-12-31 23:59' OR "users.my_leaves"."date_end" BETWEEN '2019-01-01' AND '2019-12-31 23:59') LEFT OUTER JOIN "LeaveTypes" AS "users.my_leaves.leave_type" ON "users.my_leaves"."leaveTypeId" = "users.my_leaves.leave_type"."id" WHERE "Company"."id" = 1 ORDER BY "users"."lastname", "users.department"."name"; Executing (default): SELECT "id", "name", "date", "createdAt", "updatedAt", "companyId" FROM "BankHolidays" AS "BankHoliday" WHERE "BankHoliday"."companyId" = 1; Executing (default): SELECT "id", "name", "allowance", "include_public_holidays", "is_accrued_allowance", "createdAt", "updatedAt", "companyId", "bossId" FROM "Departments" AS "Department" WHERE "Department"."companyId" = 1 ORDER BY "name"; Executing (default): SELECT "id", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday", "created_at", "updated_at", "company_id", "user_id" FROM "schedule" AS "Schedule" WHERE ("Schedule"."user_id" = 5 OR "Schedule"."company_id" = 1); Executing (default): SELECT "id", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday", "created_at", "updated_at", "company_id", "user_id" FROM "schedule" AS "Schedule" WHERE ("Schedule"."user_id" = 4 OR "Schedule"."company_id" = 1); Executing (default): SELECT "id", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday", "created_at", "updated_at", "company_id", "user_id" FROM "schedule" AS "Schedule" WHERE ("Schedule"."user_id" = 2 OR "Schedule"."company_id" = 1); Executing (default): SELECT "id", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday", "created_at", "updated_at", "company_id", "user_id" FROM "schedule" AS "Schedule" WHERE ("Schedule"."user_id" = 6 OR "Schedule"."company_id" = 1); Executing (default): SELECT "id", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday", "created_at", "updated_at", "company_id", "user_id" FROM "schedule" AS "Schedule" WHERE ("Schedule"."user_id" = 7 OR "Schedule"."company_id" = 1); Executing (default): SELECT "id", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday", "created_at", "updated_at", "company_id", "user_id" FROM "schedule" AS "Schedule" WHERE ("Schedule"."user_id" = 3 OR "Schedule"."company_id" = 1); Executing (default): SELECT "id", "year", "adjustment", "carried_over_allowance", "created_at", "user_id" FROM "user_allowance_adjustment" AS "UserAllowanceAdjustment" WHERE ("UserAllowanceAdjustment"."user_id" = 5 AND "UserAllowanceAdjustment"."year" = '2019'); Executing (default): SELECT "id", "year", "adjustment", "carried_over_allowance", "created_at", "user_id" FROM "user_allowance_adjustment" AS "UserAllowanceAdjustment" WHERE ("UserAllowanceAdjustment"."user_id" = 4 AND "UserAllowanceAdjustment"."year" = '2019'); Executing (default): SELECT "id", "year", "adjustment", "carried_over_allowance", "created_at", "user_id" FROM "user_allowance_adjustment" AS "UserAllowanceAdjustment" WHERE ("UserAllowanceAdjustment"."user_id" = 2 AND "UserAllowanceAdjustment"."year" = '2019'); Executing (default): SELECT "id", "year", "adjustment", "carried_over_allowance", "created_at", "user_id" FROM "user_allowance_adjustment" AS "UserAllowanceAdjustment" WHERE ("UserAllowanceAdjustment"."user_id" = 6 AND "UserAllowanceAdjustment"."year" = '2019'); Executing (default): SELECT "id", "year", "adjustment", "carried_over_allowance", "created_at", "user_id" FROM "user_allowance_adjustment" AS "UserAllowanceAdjustment" WHERE ("UserAllowanceAdjustment"."user_id" = 7 AND "UserAllowanceAdjustment"."year" = '2019'); Executing (default): SELECT "id", "year", "adjustment", "carried_over_allowance", "created_at", "user_id" FROM "user_allowance_adjustment" AS "UserAllowanceAdjustment" WHERE ("UserAllowanceAdjustment"."user_id" = 3 AND "UserAllowanceAdjustment"."year" = '2019'); Executing (default): UPDATE "Sessions" SET "expires"='2019-05-16 14:54:33.966 +00:00',"updatedAt"='2019-05-15 14:54:33.967 +00:00' WHERE "sid" = 'LblFyUI797S6rB5KVIBhwDfPkZ9TMA-o' GET /users/ 304 93.919 ms - - GET /css/bootstrap.min.css 304 1.384 ms - - GET /css/font-awesome.min.css 304 1.255 ms - - GET /css/style.css 304 1.184 ms - - GET /css/bootstrap-datepicker3.standalone.css 304 1.216 ms - - GET /js/jquery.min.js 304 1.222 ms - - GET /js/bootstrap.min.js 304 1.256 ms - - GET /js/bootstrap-datepicker.js 304 0.249 ms - - GET /js/global.js 304 0.473 ms - -
marct83 commented 5 years ago

It was a problem on my end. I fixed it.