Dannymh
Active member
Hi all,
I have a series of custom fields that get updated during a specific process All fields but one continue to get updated and I can not figure out why.
The code I have is
All the other fields update correctly during this process, however the TimeStamp does not (this is a single line text field with no validations on it that I use for background tasks and reporting.
There are no restrictions or formatting on that field. any ideas as to what may be preventing this? Is there a way to output any errors or logging that may be going on with it?
I have a series of custom fields that get updated during a specific process All fields but one continue to get updated and I can not figure out why.
The code I have is
PHP:
//Update thread details and close thread
$theThread->custom_fields->set('otbOrderState', 'bin', 'admin', true);
$theThread->custom_fields->set('otbPurchaseType', 'bin', 'admin', true);
//this following field wont update
$theThread->custom_fields->set('otbAuctionEndTimeStamp', time(), 'admin', true);
$theThread->custom_fields->set('otbLeader_id', \XF::visitor()->user_id, 'admin', true);
$theThread->save();
All the other fields update correctly during this process, however the TimeStamp does not (this is a single line text field with no validations on it that I use for background tasks and reporting.
Code:
$theThread->custom_fields->set('otbAuctionEndTimeStamp', time(), 'admin', true);
There are no restrictions or formatting on that field. any ideas as to what may be preventing this? Is there a way to output any errors or logging that may be going on with it?