Hi All,
I am having an issue with CMS workflow and the latest release of SS.
I have just upgraded SS to 2.3.2, and have the latest version of cmsWorkflow from the trunk. I am getting the error:
[User Error] DataObject::getComponents(): Unknown 1-to-many component 'WorkflowRequests' on class 'HomePage'
Looks like the issue is in the method:
public function ClosedWorkflowRequests($filter = "", $sort = "", $join = "", $limit = "") {
$this->componentCache = array();
if($filter) $filter .= ' AND ';
$filter .= "Status IN ('Approved','Denied')";
return $this->owner->getComponents(
'WorkflowRequests',
$filter,
$sort,
$join,
$limit
);
}
in SiteTreeCMSWorkflow.php
Anyone got any Ideas what might be causing this? A partial trace is as follows, any help would be appreciated (I know this isn't meant to be stable until 2.4, but if anyone could point out a workaround, that would be great):
DataObject::getComponents(): Unknown 1-to-many component 'WorkflowRequests' on class 'HomePage'
Line 1086 of DataObject.php
DataObject->getComponents(WorkflowRequests,Status IN ('Approved','Denied'),,,)
Line 259 of SiteTreeCMSWorkflow.php
SiteTreeCMSWorkflow->ClosedWorkflowRequests()
Line 139 of SiteTreeCMSWorkflow.php
SiteTreeCMSWorkflow->getWorkflowCMSFields()
Line 123 of SiteTreeCMSWorkflow.php
SiteTreeCMSWorkflow->updateCMSFields(FieldSet,,,,,,)
Line 741 of Object.php
Object->extend(updateCMSFields,FieldSet)
Line 1328 of SiteTree.php
SiteTree->getCMSFields()
Line 14 of Page.php
Page->getCMSFields()
Line 55 of HomePage.php
HomePage->getCMSFields(CMSMain)
Line 390 of CMSMain.php
CMSMain->getEditForm(1)
Line 925 of LeftAndMain.php
LeftAndMain->EditForm()
call_user_func_array(Array,Array)
Line 550 of ViewableData.php