return page;
}
public WOComponent createBugFromTestItem(TestItem testItem) {
EOEditingContext peer = ERXEC.newEditingContext(testItem.editingContext().parentObjectStore());
EditPageInterface epi = null;
peer.lock();
try {
testItem = (TestItem) testItem.localInstanceIn(peer);
People user = People.clazz.currentUser(peer);
Component component = testItem.component();
Bug bug = Bug.clazz.createAndInsertObject(peer);
testItem.setState(TestItemState.BUG);
bug.setTextDescription("[From Test #" + testItem.primaryKey()+"]");
bug.addToTestItems(testItem);
bug.setOriginator(user);
bug.setComponent(component);
epi=(EditPageInterface)createPageNamed("CreateBugFromTestItem");
epi.setObject(bug);
epi.setNextPage(session().context().page());
} finally {
peer.unlock();
}
return (WOComponent)epi;
}