traccar / traccar-web

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
786 stars 1.09k forks source link

Multiple notifications - v5.11 #1208

Closed joystickjockey closed 5 months ago

joystickjockey commented 5 months ago

Describe the bug Multiple notifications when device is connected to a group. V5.11 with some customization

To Reproduce Steps to reproduce the behavior:

  1. Create "Ignition on" Notification, channels web, email

  2. Link device to "Ignition on" notification

  3. Don't link device to a group yet

  4. Turn ignition on Result: One web and one email notification generated which is as expected

  5. Then create a group and link the device to a group

  6. Turn the ignition on again Result: 3 x web and 3 x email notifications generated

Only one "Ignition on" event is reported in events report for both tests performed.

I have some customization on v5.11 but it is the same customization I had on v5.10 On v5.10 I did not have the issue

tananaev commented 5 months ago

Fixed in https://github.com/traccar/traccar/commit/079eaa6ed49813f4050076ac45849f6e4334e45b. Please try.