Project

General

Profile

BUG #4189

Updated by Aman Bhuiyan 2 months ago

 


 ### Description 
 **Module/Section:** Agency Profile → Profile Header → Year Founded   
 **Profile:** Agency   
 **Issue Category:** Functional   

 On the **Edit Year Founded** modal, entering the year **2026** triggers a validation warning stating **“Year must be between 1800 and 2025”**, which prevents the value from being saved.   
 The validation range appears to be **hardcoded and outdated**, causing legitimate values to be rejected. 

 ### Steps to Reproduce 
 1. Navigate to the **Agency Profile** page. 
 2. Click on the **Edit Year Founded** icon. 
 3. Enter **2026** in the input field. 
 4. Attempt to save the changes. 

 ### Expected Result 
 1. The **Year Founded** field should allow valid values based on the **current year** (or dynamically update the upper limit each year). 
 2. Validation rules should not block legitimate values due to **outdated constraints**. 

 ### Actual Result 
 - Entering **2026** triggers a validation warning:   
   **“Year must be between 1800 and 2025”** 
 - The value cannot be saved due to the outdated validation range. 

 ### Attachments 
 - [PoC](https://drive.google.com/file/d/13TuflWzUP3mokRng7tD8Em8zdRIH_Uod/view?usp=sharing) 
 --- 
 ### Impact Area: 
  
 ### Root Cause: 

 --- 
 ### Additional Info 
 - Tested By: Aman 

Back