Commit 4e5c726ea161d781843ec65ad41954235bd49da7

Authored by Volodymyr Babak
1 parent c5f5acdb

Fixed correct class for widget type details

@@ -73,12 +73,12 @@ public class WidgetTypeController extends BaseController { @@ -73,12 +73,12 @@ public class WidgetTypeController extends BaseController {
73 } 73 }
74 74
75 checkEntity(widgetTypeDetails.getId(), widgetTypeDetails, Resource.WIDGET_TYPE); 75 checkEntity(widgetTypeDetails.getId(), widgetTypeDetails, Resource.WIDGET_TYPE);
76 - WidgetType savedWidgetType = widgetTypeService.saveWidgetType(widgetTypeDetails); 76 + WidgetTypeDetails savedWidgetTypeDetails = widgetTypeService.saveWidgetType(widgetTypeDetails);
77 77
78 - sendEntityNotificationMsg(getTenantId(), savedWidgetType.getId(), 78 + sendEntityNotificationMsg(getTenantId(), savedWidgetTypeDetails.getId(),
79 widgetTypeDetails.getId() == null ? EdgeEventActionType.ADDED : EdgeEventActionType.UPDATED); 79 widgetTypeDetails.getId() == null ? EdgeEventActionType.ADDED : EdgeEventActionType.UPDATED);
80 80
81 - return checkNotNull(widgetTypeDetails); 81 + return checkNotNull(savedWidgetTypeDetails);
82 } catch (Exception e) { 82 } catch (Exception e) {
83 throw handleException(e); 83 throw handleException(e);
84 } 84 }