javascript and api to stop and display active records (#772)

This commit is contained in:
Kevin Papst
2019-05-10 13:45:09 +02:00
committed by GitHub
parent e619b5fd31
commit 09da7cd242
86 changed files with 918 additions and 449 deletions

View File

@@ -59,7 +59,7 @@ trait StringAccessibleConfigTrait
$temp = array_slice($temp, 1);
}
foreach ($temp as $key2) {
if (!isset($array[$key2])) {
if (!array_key_exists($key2, $array)) {
// unknown values will silently be skipped
continue 2;
}
@@ -110,7 +110,7 @@ trait StringAccessibleConfigTrait
$keys = explode('.', $key);
$search = array_shift($keys);
if (!isset($config[$search])) {
if (!array_key_exists($search, $config)) {
throw new \InvalidArgumentException('Unknown config: ' . $key);
}

View File

@@ -0,0 +1,25 @@
<?php
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Configuration;
class ThemeConfiguration implements SystemBundleConfiguration
{
use StringAccessibleConfigTrait;
public function getPrefix(): string
{
return 'theme';
}
public function getSelectPicker(): string
{
return (string) $this->find('select_type');
}
}