Version 4.7.6

This commit is contained in:
Neo committed 2025-12-19 16:05:19 -08:00
1 parent 8ba7d43898
commit 7b7404e741
1085 files changed
+30590 -7837

No files matched your search

@@ -1230,4 +1230,32 @@ class _request extends \IPS\nexus\modules\front\support\view
}
return $defaultAction;
}
/**
* Redirect to next/prev support request
*
* @return void
*/
public function nextRequest()
{
$type = \IPS\Request::i()->ty == 'next' ? 0 : 1;
try
{
$request = Support\Request::loadAndCheckPerms( \IPS\Request::i()->id );
$nextRequest = $request->nextPrevious( $type );
}
catch ( \OutOfRangeException $e )
{
\IPS\Output::i()->error( 'node_error', '2X208/N', 404, '' );
}
/* Nothing left? */
if( $nextRequest === NULL )
{
\IPS\Output::i()->error( 'next_request_not_found', '2X208/O', 404, '' );
}
\IPS\Output::i()->redirect( $nextRequest->acpUrl() );
}
}