Skip to content

Commit

Permalink
When setting the object, clear the tab sections contents. The call to…
Browse files Browse the repository at this point in the history
… setTabByName is no longer necessary, as the current tab is being reset with the call to clearTabSectionsContents.
  • Loading branch information
fbarthez committed Nov 12, 2015
1 parent e2541f1 commit b0c6641
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.webobjects.eocontrol.EOEditingContext;
import com.webobjects.eocontrol.EOEnterpriseObject;

import er.directtoweb.ERD2WContainer;
import er.directtoweb.pages.templates.ERD2WTabInspectPageTemplate;
import er.extensions.eof.ERXEC;
import er.extensions.eof.ERXEOControlUtilities;
Expand Down Expand Up @@ -114,11 +113,7 @@ private void resetTask() {
*/
@Override
public void setObject(EOEnterpriseObject eoenterpriseobject) {
// If we are getting a new EO, then reset the current step.
if (eoenterpriseobject != null && !eoenterpriseobject.equals(object())) {
ERD2WContainer tab = tabSectionsContents().objectAtIndex(0);
setTabByName(tab.name);
}
clearTabSectionsContents();
super.setObject(eoenterpriseobject);
}

Expand Down

0 comments on commit b0c6641

Please sign in to comment.