security/stunnel - fix regression caused by changed parent save() method (e36123c99f
)
This commit is contained in:
parent
0da31a9e95
commit
a186956c52
|
@ -1,6 +1,6 @@
|
|||
PLUGIN_NAME= stunnel
|
||||
PLUGIN_VERSION= 1.0.5
|
||||
PLUGIN_REVISION= 2
|
||||
PLUGIN_REVISION= 3
|
||||
PLUGIN_COMMENT= Stunnel TLS proxy
|
||||
PLUGIN_MAINTAINER= ad@opnsense.org
|
||||
PLUGIN_DEPENDS= stunnel
|
||||
|
|
|
@ -35,7 +35,7 @@ class ServicesController extends ApiMutableModelControllerBase
|
|||
protected static $internalModelName = 'stunnel';
|
||||
protected static $internalModelClass = 'OPNsense\Stunnel\Stunnel';
|
||||
|
||||
protected function save()
|
||||
protected function save($validateFullModel = false, $disable_validation = false)
|
||||
{
|
||||
// hook service enable status on enabled tunnels
|
||||
$this->getModel()->general->enabled = "0";
|
||||
|
@ -45,7 +45,7 @@ class ServicesController extends ApiMutableModelControllerBase
|
|||
break;
|
||||
}
|
||||
}
|
||||
return parent::save();
|
||||
return parent::save($validateFullModel, $disable_validation);
|
||||
}
|
||||
|
||||
public function searchItemAction()
|
||||
|
|
Loading…
Reference in New Issue