Skip to content

Commit

Permalink
Default enable stat setting for a widget xibosignageltd/xibo-private#354
Browse files Browse the repository at this point in the history
  • Loading branch information
dasgarner committed Aug 10, 2023
1 parent 6df3f84 commit ad496b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Controller/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ public function addWidget(Request $request, Response $response, $type, $id)
$module->schemaVersion
);

// Default status setting
$widget->setOptionValue(
'enableStat',
'attrib',
$this->getConfig()->getSetting('WIDGET_STATS_ENABLED_DEFAULT')
);

// Get the template
if ($module->isTemplateExpected()) {
$templateId = $params->getString('templateId', [
Expand Down

0 comments on commit ad496b3

Please sign in to comment.