Here is the part of the form that deals with the obtained_date. Yes, it is confusing as to why it would pass any value at all when the user doesn't specify a date in the form. However, with the use of the beforeSave() function, I have been able to unset the value.
<div class="optional"> <?php echo $form->labelTag('Skater/obtained_date', 'Obtained Date');? > <?php echo $html->dateTimeOptionTag('Skater/obtained_date', 'MDY' , 'NONE', $html->tagValue('Skater/obtained_date'), array());?> <?php echo $html->tagErrorMsg('Skater/obtained_date', 'Please select the Obtained Date.');?> </div> On Dec 31, 10:43 am, Robby Anderson <[EMAIL PROTECTED]> wrote: > What does your form look like? Chances are the form isn't passing a > null value to the controller - its got some other value ('--') > instead. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---