Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
yash-gwl opened this issue Oct 11, 2024 · 2 comments
Open
3 tasks done

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

yash-gwl opened this issue Oct 11, 2024 · 2 comments

Comments

@yash-gwl
Copy link

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]):

  • I have deactivated other plugins and confirmed this bug occurs when only WP Job Manager plugin is active.
  • This bug happens with a default WordPress theme active.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment

  • WordPress Version: 6.6.2
  • WP Job Manager Version: 2.4.0
  • PHP Version: 8.2
  • Other important details:
@bobmatyas
Copy link
Contributor

@yash-gwl
Copy link
Author

Hello Team,

Any update on it? Have you fixed the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants