- milestone: 827052 --> Release_0.5
BrowseHistoryManager.back - remove refreshing ExpenseRecordForm after implementation of listening for RS changes:
<codeToRemove>
if( result instanceof ExpenseRecordForm ) {
//FIXME: Remove this line after implementation of
//listening for RS changes / forms lifecycle:
//@FeatureRequest 1966407 RecordStore changes propagation
//@FeatureRequest 1953186 Forms lifecycle methods
((ExpenseRecordForm)result).refresh();
}
</codeToRemove>
ExpenseCategoryForm - onOkCommandAction:
<codeToRemove>
//TODO: Temporary fix for bug:
//1952931: After adding category the list is not refreshed
//TODO: This problem should be solved in general because it cannot be
//assumed, that only ExpenseRecordForm | CategoryListForm can call ExpenseCategoryForm.
Displayable currentDisplayable = BrowseHistoryManager.getInstance().getCurrent();
if( currentDisplayable instanceof ExpenseRecordForm ) {
ExpenseRecordForm recordForm = (ExpenseRecordForm)currentDisplayable;
recordForm.refresh();
}
if( currentDisplayable instanceof CategoryListForm ) {
CategoryListForm categoryListForm = (CategoryListForm)currentDisplayable;
categoryListForm.refresh();
}
</codeToRemove>