Skip to content

Commit

Permalink
"Parameter missing" in Nextcloud Tables data source #387
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Jun 12, 2024
1 parent 2dd27a6 commit 333ed3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Save filter fails for table-only report #392
- missing variable in public shares
- dark theme issues
- "Parameter missing" in Nextcloud Tables data source #387

## 4.13.0 - 2024-04-14
### Added
Expand Down
5 changes: 4 additions & 1 deletion lib/Controller/OutputController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

class OutputController extends Controller
{
private $userId;
private $logger;
private $ReportService;
private $DataSession;
Expand All @@ -36,6 +37,7 @@ class OutputController extends Controller
private $VariableService;

public function __construct(
$userId,
string $appName,
IRequest $request,
LoggerInterface $logger,
Expand All @@ -49,6 +51,7 @@ public function __construct(
)
{
parent::__construct($appName, $request);
$this->userId = $userId;
$this->logger = $logger;
$this->ReportService = $ReportService;
$this->DataSession = $DataSession;
Expand Down Expand Up @@ -105,7 +108,7 @@ public function readPreview ($type, $options)
$reportMetadata['type'] = $type;
$reportMetadata['dataset'] = 0;
$reportMetadata['filteroptions'] = '';
$reportMetadata['user_id'] = 'admin';
$reportMetadata['user_id'] = $this->userId;
$reportMetadata['id'] = 0;

$result = $this->getData($reportMetadata);
Expand Down

0 comments on commit 333ed3c

Please sign in to comment.