Enable per system configuration of messages per packet
This commit is contained in:
@@ -31,7 +31,7 @@ class SystemController extends Controller
|
||||
public function add_edit(SystemRegisterRequest $request, System $o)
|
||||
{
|
||||
if ($request->validated()) {
|
||||
foreach (['name','location','phone','address','port','active','method','pkt_type'] as $key)
|
||||
foreach (['name','location','phone','address','port','active','method','pkt_msgs','pkt_type'] as $key)
|
||||
$o->{$key} = $request->validated($key);
|
||||
|
||||
// Sometimes items
|
||||
|
@@ -73,6 +73,7 @@ class SystemRegisterRequest extends FormRequest
|
||||
'hold' => 'sometimes|boolean',
|
||||
'pollmode' => 'required|integer|min:0|max:2',
|
||||
'heartbeat' => 'nullable|integer|min:0|max:48',
|
||||
'pkt_msgs' => 'nullable|integer|min:5',
|
||||
] : []));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user