initDashboardFilterHandler(panel);
}
protected void initDashboardFilterHandler(Panel panel) {
DashboardFilterHandler handler = getDashboardFilterHandler(panel);
// Check if same panel is in different sections.
if (checkPanelDuplicated(panel)) handler.setPanelDuplicated(true);
else handler.setPanelDuplicated(false);
// Check if component have not been deserialized yet. If so then load its persistent status.
if (handler.getSerializedProperties() == null) {
try {
boolean needsToReserialize = handler.deserializeComponentData((String) panel.getContentData());
if (needsToReserialize) saveDashboardFilterHandler(panel);
} catch (Exception e) {
log.error("Error deserializing visible properties for dashboard filter.", e);
}
}