Skip to main content

Bug #442 — WO/SO: Cannot sign JSA Risk Assessment

Issue: #442 Reporter: Kang-Supreeya Date: 2026-02-18 Version: Preview35 Severity: Medium Frequency: Always


Description

เจ้าของงาน / จป : เซ็น JSA ไม่ได้

Work Owner and Safety Officer cannot sign their respective signature slots on the JSA Risk Assessment form during co-review. Additionally, roles could sign any slot (not restricted to their own), and switching between accounts loaded the wrong saved signature.

Related: SR #017 (item 3)

Location

Tasks > JSA Preparation > Co-Review state > JSA document > Signature section

Bug Details

RoleExpectedActual
Work OwnerCan sign "ผู้อนุมัติ (เจ้าของงาน)" slotCannot sign
Safety OfficerCan sign "ผู้อนุมัติ (จป.)" slotCannot sign

Steps to Reproduce

  1. Login as Work Owner or Safety Officer
  2. Go to Tasks > JSA Preparation (during co-review state)
  3. Open a JSA document
  4. Scroll to signature section
  5. Try to click on the signature slot for your role
  6. Observe — signature dialog does not open or shows wrong behavior

Screenshots

Bug #442 Screenshot

What to Test

#Test CaseStatus
1WO can only click "ผู้อนุมัติ (เจ้าของงาน)" slot Pending
2SO can only click "ผู้อนุมัติ (จป.)" slot Pending
3Contractor can only click "ผู้จัดทำ" slot Pending
4WO tries to approve without signing → Approve button disabled Pending
5Switching accounts loads the correct saved signature Pending