I now have an issue where I can't seem to have an empty date, which I want for some of my tables. I can set the dates to 0000-00-00 which I would be happy with, but I get an error message when trying to write the form.
Incorrect datetime value: \'\' for column \'date_nextcall\' at row 1 SQL=UPDATE properties SET `hf_ref`=\'HF256852510\',`branch_id`=\'1\',`property_address`=\'The Hollies\',`post_code`=\'The Hollies\',`status_id`=\'\',`price`=\'285,000\',`fee`=\'4,275\',`date_listed`=\'2006-10-02 00:00:00\',`date_lastpricerev`=\'1970-01-01 00:00:00\',`date_nextpricerev`=\'1970-01-01 00:00:00\',`date_lastad`=\'1970-01-01 00:00:00\',`date_lastcall`=\'1970-01-01 00:00:00\',`date_nextcall`=\'\',`date_exchange`=\'1970-01-01 00:00:00\',`solicitor`=\'\',`date_aml`=\'2008-01-01 00:00:00\',`date_pma`=\'2008-01-01 00:00:00\',`hips_id`=\'1\',`motivation_id`=\'2\',`neg_id`=\'68\',`val_id`=\'70\',`ad_requested`=\'0\',`weight`=\'0\',`notes`=\'\' WHERE property_id=\'1\'
It seems I must have something in the field.
I have checked my mySQL tables and this allows null values or 0000-00-00 values.
I ahve also set a default value in fabrik to 0000-00-00
Any ideas?
Incorrect datetime value: \'\' for column \'date_nextcall\' at row 1 SQL=UPDATE properties SET `hf_ref`=\'HF256852510\',`branch_id`=\'1\',`property_address`=\'The Hollies\',`post_code`=\'The Hollies\',`status_id`=\'\',`price`=\'285,000\',`fee`=\'4,275\',`date_listed`=\'2006-10-02 00:00:00\',`date_lastpricerev`=\'1970-01-01 00:00:00\',`date_nextpricerev`=\'1970-01-01 00:00:00\',`date_lastad`=\'1970-01-01 00:00:00\',`date_lastcall`=\'1970-01-01 00:00:00\',`date_nextcall`=\'\',`date_exchange`=\'1970-01-01 00:00:00\',`solicitor`=\'\',`date_aml`=\'2008-01-01 00:00:00\',`date_pma`=\'2008-01-01 00:00:00\',`hips_id`=\'1\',`motivation_id`=\'2\',`neg_id`=\'68\',`val_id`=\'70\',`ad_requested`=\'0\',`weight`=\'0\',`notes`=\'\' WHERE property_id=\'1\'
It seems I must have something in the field.
I have checked my mySQL tables and this allows null values or 0000-00-00 values.
I ahve also set a default value in fabrik to 0000-00-00
Any ideas?