table 'worksheet' display not updated after table deleted
a user wanted to replace a dataTable in a package. She chose 'Data->delete data table'. The data table disappeared, and she added uploaded a new table and a created a new set of attribute descriptions. So far, this is as expected.
However, when she finished the attribute descriptions, and Morpho displayed the table, it displayed the old attribute descriptions in the 'worksheet' pane. When she clicked on an attribute, the new attribute description was displayed on the right (alongside the old table). When she closed the data package and reopened, the new data table was there, so it seems to be just a worksheet display issue.
The EML docids are cdonahue.26.2 (old table, to be deleted) and cdonahue.26.3 (new table)
Updated by Jing Tao about 13 years ago
In AbstractDataPackage method, there is variable to cache the attribute list of selected entity. This attribute list will be used to display the attributes on worksheet. However, the cached the attribute list wasn't reset when a entity was deleted, so user will see old attribute. After adding resetting the attribute list, the bug has been fixed.
Margaret, would you please test it again through a svn version of Morpho to make sure the bug was fixed?