Menu

#231 saveModuleData during publishing

open
None
5
2004-10-26
2004-10-26
No

The forum is having trouble because when publishing for
the first time, we are saving the KO before it has been
properly setup. This seems to have existed for a
while, but until now hasn't caused any major trouble.

saveModuleData() is being called in Cln_KO::createLivePart:

    // If there is another part for us to look for data in
    if \($passingDataPartId\) \{
        if

(!is_object($this->parts[$passingDataPartId]['object'])) {
$this->loadPartObjectById($passingDataPartId);
}
$passingData =
$this->parts[$passingDataPartId]['object']->getNewTranslationData();
// :TODO: look into why this is getNewTranslationData,
not getPublishData or something like that.
}
else {
$passingData = FALSE;
}

    $object = new $classname\('NEW', $passingData\);
    $object->\_super = & $this;
    $objectId = $object->saveModuleData\(\);

Discussion


Log in to post a comment.