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

UDPBroadcastrelay UI fix for 24.7 #4107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marjohn56
Copy link
Member

The UI was causing errors when running under 24.7, this issue was not present in 24.1 and earlier versions. Not sure what's causing it but removing the following:

if ($this->request->isPost()) {
           $this->sessionClose();
       }

fixes the issue.

UI interface worked fine pre 24.7 but something has broken it. Changes applied fix the issue
Update udpbroadcastrealy controller interface
@@ -44,10 +43,6 @@ class ServiceController extends ApiMutableModelControllerBase

public function statusAction($uuid)
{
$result = array("result" => "failed", "function" => "status");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to keep this line

@@ -126,10 +121,6 @@ public function restartAction($uuid)
*/
public function configAction()
{
$result = array("result" => "failed", "function" => "config");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep this line

@@ -31,7 +31,6 @@
use OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\UDPBroadcastRelay\UDPBroadcastRelay;
use OPNsense\Core\Backend;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you can bring back this spacer line also ;)

@fichtner fichtner self-assigned this Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants