Thursday 09 November 2006 12:37:00 am
Hi there
I have created a new datatype which stores some data in an external table. In the function objectAttributeContent(...) I either want to fetch the data for the current version or, if the current version is a draft, the data of the published version. The prolem I have is determining whether the the current version is a draft. My current code is like this:
$currentVersion =& $contentObjectAttribute->attribute('object_version');
$currentVersionNr = $currentVersion->attribute('version');
$currentVersionStatus = $currentVersion->attribute('status');
The version number is correct, but the status is set to 5. According to the documentation the status for a draft is supposed to be 0, a status of 5 is not mentioned at all. Any idea what is going on? Claudia
|