[FIX] ZM 1.24.2: Disabling a monitor from monitor options

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

[FIX] ZM 1.24.2: Disabling a monitor from monitor options

Post by mastertheknife »

How to reproduce:
Try to disable an enabled monitor (in any mode) from the monitor options page, the monitor will remain enabled.
NOTE: Enabling however works, and enabling\disabling from monitor function page also works.

In file includes/actions.php, edit the following, which starts at line 1101 (May vary from installation to installation)
Change it from:

Code: Select all

              $types = array(
                  'Triggers' => 'set',
                  'Controllable' => 'toggle',
                  'TrackMotion' => 'toggle',
              );
To:

Code: Select all

              $types = array(
                  'Triggers' => 'set',
                  'Controllable' => 'toggle',
                  'TrackMotion' => 'toggle',
                  'Enabled' => 'toggle'
              );
mastertheknife.
Post Reply