Commit bcfc7cc733868d3888d9ae01e48e59f032c9c557
Committed by
Andrew Shvayka
1 parent
d7fa7743
fixed audit logs for device profile
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -151,7 +151,7 @@ public class DeviceProfileController extends BaseController { | @@ -151,7 +151,7 @@ public class DeviceProfileController extends BaseController { | ||
151 | 151 | ||
152 | logEntityAction(savedDeviceProfile.getId(), savedDeviceProfile, | 152 | logEntityAction(savedDeviceProfile.getId(), savedDeviceProfile, |
153 | null, | 153 | null, |
154 | - savedDeviceProfile.getId() == null ? ActionType.ADDED : ActionType.UPDATED, null); | 154 | + created ? ActionType.ADDED : ActionType.UPDATED, null); |
155 | 155 | ||
156 | return savedDeviceProfile; | 156 | return savedDeviceProfile; |
157 | } catch (Exception e) { | 157 | } catch (Exception e) { |