code/Controller/AssetAdmin.php
public function fileHistoryForm($request = null)
    {
        // Get ID either from posted back value, or url parameter
        if (!$request) {
            $this->jsonError(400);
            return null;
        }
        $id = $request->param('ID');
        if (!$id) {
            $this->jsonError(400);
            return null;
        }
        $versionID = $request->param('VersionID');
        if (!$versionID) {
            $this->jsonError(400);
            return null;
        }
        $form = $this->getFileHistoryForm([
            'RecordID' => $id,
            'RecordVersion' => $versionID,
        ]);
        return $form;
    }
public function fileHistoryForm($request = null)
    {
        // Get ID either from posted back value, or url parameter
        if (!$request) {
            $this->jsonError(400);
            return null;
        }
        $id = $request->param('ID');
        if (!$id) {
            $this->jsonError(400);
            return null;
        }
        $versionID = $request->param('VersionID');
        if (!$versionID) {
            $this->jsonError(400);
            return null;
        }
        $form = $this->getFileHistoryForm([
            'RecordID' => $id,
            'RecordVersion' => $versionID,
        ]);
        return $form;
    }
public function fileHistoryForm ( $ request = null ) { // Get ID either from posted back value, or url parameter if ( ! $ request ) { $ this -> jsonError ( 400 ) ; return null ; } $ id = $ request -> param ( 'ID' ) ; if ( ! $ id ) { $ this -> jsonError ( 400 ) ; return null ; } $ versionID = $ request -> param ( 'VersionID' ) ; if ( ! $ versionID ) { $ this -> jsonError ( 400 ) ; return null ; } $ form = $ this -> getFileHistoryForm ( [ 'RecordID' => $ id , 'RecordVersion' => $ versionID , ] ) ; return $ form ; }
Get file history form

@param HTTPRequest $request
@return Form|HTTPResponse
Get file history form