Automattic / WP-Job-Manager

Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
https://wpjobmanager.com
GNU General Public License v3.0
901 stars 368 forks source link

Date Picker Overwrites Past Expiry Dates When Editing Job Listings #2855

Open yash-gwl opened 1 month ago

yash-gwl commented 1 month ago

Describe the bug When editing a job listing that has a "Listing Expiry Date" set in the past, the date picker automatically resets the input field to the current date instead of retaining the original past expiry date. This behavior makes it difficult for users to review or extend the job listing as they cannot see the previous expiry date and are forced to work with the current date.

To Reproduce Steps to reproduce the behavior:

  1. Go to the WP Job Manager admin dashboard.
  2. Edit a job listing that has a "Listing Expiry Date" set in the past.
  3. Scroll to the "Listing Expiry Date" field.
  4. Notice that the date picker automatically changes the field to the current date.

Screenshots Image Image

Expected behavior The date picker should not automatically overwrite a past expiry date with the current date. Instead:

The date picker should retain and display the original expiry date.

While the date picker should restrict users from selecting past dates, the pre-existing past date should remain visible when editing the listing.

Isolating the problem (mark completed items with an [x]):

WordPress Environment

bobmatyas commented 1 month ago

Originally raised here: https://wordpress.org/support/topic/issue-with-listing-expiry-date-date-picker-functionality-in-wp-job-manager/

yash-gwl commented 3 weeks ago

Hello Team,

Any update on it? Have you fixed the issue?