IDEMPIERE-1857:Incorrectly info window opens from views panel
This commit is contained in:
parent
908050c3bd
commit
9b1f81f2cd
|
@ -19,6 +19,7 @@ import org.adempiere.webui.apps.AEnv;
|
||||||
import org.adempiere.webui.component.ToolBarButton;
|
import org.adempiere.webui.component.ToolBarButton;
|
||||||
import org.adempiere.webui.component.Window;
|
import org.adempiere.webui.component.Window;
|
||||||
import org.adempiere.webui.panel.InfoPanel;
|
import org.adempiere.webui.panel.InfoPanel;
|
||||||
|
import org.adempiere.webui.session.SessionManager;
|
||||||
import org.adempiere.webui.theme.ThemeManager;
|
import org.adempiere.webui.theme.ThemeManager;
|
||||||
import org.adempiere.webui.window.InfoSchedule;
|
import org.adempiere.webui.window.InfoSchedule;
|
||||||
import org.compiere.model.MInfoWindow;
|
import org.compiere.model.MInfoWindow;
|
||||||
|
@ -136,8 +137,7 @@ public class DPViews extends DashboardPanel implements EventListener<Event> {
|
||||||
if (infoWindowID<=0)
|
if (infoWindowID<=0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
String tableName = MTable.getTableName(Env.getCtx(), new MInfoWindow(Env.getCtx(), infoWindowID, null).getAD_Table_ID());
|
SessionManager.getAppDesktop().openInfo(infoWindowID);
|
||||||
InfoPanel.showPanel(tableName);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue