Go Back   HartlessByDesign Forum > Projects > phpSchedule'Em > Bug

Date validation failiure Issue Tools
issueid=1 10-15-2008 07:50 AM
Junior Member
Date validation failiure
Unable to submit any form that includes a date field

When I encounter a form with date field I can perfectly choose a date from the calender pop-up and the date appears in the field, but upon submission I get the error
"Start date must be a ." (or any other date).

This happens with each form (templeastes / schedules / employees)

I have an installation online where you can verify if you want, contact me for details.
Issue Details
Project phpSchedule'Em
Category Installation/Upgrade
Status Fixed
Priority 5 - Medium
Affected Version 1.0beta3
Fixed Version 1.0beta4
Milestone (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users alan
Tags (none)

10-15-2008 08:32 AM
Administrator
 
Thanks for your report!

Please do the following when you get a chance and post back the results:

1) Open with some sort of file editor your config.php file on your server. (This is in the config folder). Look for a variable named "$cfg_workWeekStart." What is assigned to that variable? If it is empty, then do step two. If it has a day of the week listed, just let me know what is listed.

2) Go to Settings and scroll down to the Company Information section and look for "Work Week Begins On." Select the day of the week you want the work week to begin. For example, if it is a Monday through Friday job then the work week begins on Monday. Save your results and try again. Note that the date you choose for schedules and templates has to be the day of the week you set as the start of the work week. So, if you choose a Monday, the date would have to be 10/20/2008, 10/27/2008, etc. The employee start date shouldn't get this error at all. Are you sure you are getting it also for employees?

If you are still getting the error, let me know and I'll have to look at the code deeper because I'm not reproducing it.

If the $cfg_workWeekStart is blank and step two fixes things, then I'm thinking it was an issue during the installation where that setting did not get saved initially. Otherwise, I'll have to look around to see what's going on.

Thanks!
Alan
Reply
This petition for a change to Fixed was accepted
10-15-2008 08:45 AM
Junior Member
 
Hi,

The $cfg_workWeekStart setting was not present in my config file (I did step thrue your installer properly as far as I can remember). I fixed this be going into the settings (there monday was selected as default) and changing the setting to a random other value, hit save and move it back to monday.

Works ok now!
Will do some further testing,; thanks for the speedy reply.
10-15-2008 08:59 AM
Administrator
 
Okay so definitely an issue with the installer. I'll get it fixed for the next release.
Reply
Reply

Issue Tools
Subscribe to this issue

All times are GMT -5. The time now is 08:38 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

© Alan Hartless