Fix updating systems sometimes items
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 37s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m50s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2024-10-20 21:44:56 +11:00
parent 8396866280
commit d2d2f31664
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ class SystemController extends Controller
// Sometimes items
foreach (['sysop','hold','notes','zt_id','heartbeat'] as $key)
if ($request->validated($key))
if ($request->has($key))
$o->{$key} = $request->validated($key);
switch ($request->validated('pollmode')) {

View File

@ -337,7 +337,7 @@ class Address extends Model
throw new InvalidFTNException(sprintf('Invalid FTN: [%s] - point address invalid [%d]',$ftn,$matches[4]));
// Work out region
$region_id = 0;
$region_id = NULL;
$zone_id = NULL;
// We can only work out region/zone if we have a domain - this is for 2D parsing