Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No response when pressing the "SET" button in PTZ control #3890

Closed
IgorA100 opened this issue Mar 23, 2024 · 4 comments
Closed

No response when pressing the "SET" button in PTZ control #3890

IgorA100 opened this issue Mar 23, 2024 · 4 comments

Comments

@IgorA100
Copy link
Contributor

IgorA100 commented Mar 23, 2024

  • 1.37.56~20240322163032

Button press
<button type="button" class="ptzTextBtn" value="Set" data-toggle="modal" data-target="#ctrlPresetModal"><?php echo translate('Set') ?></button>
skins\classic\includes\control_functions.php not processed in \skins\classic\views\js\watch.js

https://forums.zoneminder.com/viewtopic.php?p=133906#p133906

Copy link

welcome bot commented Mar 23, 2024

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

@IgorA100
Copy link
Contributor Author

data.html is empty, strange

function getCtrlPresetModal() {
  $j.getJSON(monitorUrl + '?request=modal&modal=controlpreset&mid=' + monitorId)
      .done(function(data) {
        insertModalHtml('ctrlPresetModal', data.html);

@IgorA100
Copy link
Contributor Author

The problem is here \ajax\modals\controlpreset.php:
if (!canEdit('Monitors')) return ' ';

@connortechnology
Copy link
Member

In a multi-server setup, we must pass authentication info along which we weren't doing. Fixed by dd0b2bc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants