fdsfdf
This commit is contained in:
@@ -623,10 +623,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$moduleStatusPanel = null;
|
$moduleStatusPanel = null;
|
||||||
$activeSetupSection = trim((string) ($_POST['active_setup_section'] ?? 'setup-section-general'));
|
|
||||||
if (!in_array($activeSetupSection, ['setup-section-general', 'setup-section-access', 'setup-section-cron', 'setup-section-custom'], true)) {
|
|
||||||
$activeSetupSection = 'setup-section-general';
|
|
||||||
}
|
|
||||||
|
|
||||||
$activeDbGroup = $testGroup !== null && array_key_exists($testGroup, $dbGroups)
|
$activeDbGroup = $testGroup !== null && array_key_exists($testGroup, $dbGroups)
|
||||||
? $testGroup
|
? $testGroup
|
||||||
@@ -661,11 +657,7 @@ sort($knownGroups, SORT_NATURAL | SORT_FLAG_CASE);
|
|||||||
$knownUserValues = array_column($knownUsers, 'sub');
|
$knownUserValues = array_column($knownUsers, 'sub');
|
||||||
$manualUsers = array_values(array_filter($allowedUsers, fn (string $value): bool => !in_array($value, $knownUserValues, true)));
|
$manualUsers = array_values(array_filter($allowedUsers, fn (string $value): bool => !in_array($value, $knownUserValues, true)));
|
||||||
$manualGroups = array_values(array_filter($allowedGroups, fn (string $value): bool => !in_array($value, $knownGroups, true)));
|
$manualGroups = array_values(array_filter($allowedGroups, fn (string $value): bool => !in_array($value, $knownGroups, true)));
|
||||||
$hasCronSection = $cronSetupFields !== [] || $intervalTaskStatuses !== [] || $cronTaskDefinitions !== [];
|
|
||||||
$hasCustomSection = $customSetupFields !== [] || $setupActions !== [] || $isFxRatesSetup;
|
$hasCustomSection = $customSetupFields !== [] || $setupActions !== [] || $isFxRatesSetup;
|
||||||
if ($activeSetupSection === 'setup-section-custom' && !$hasCustomSection) {
|
|
||||||
$activeSetupSection = 'setup-section-general';
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
<div class="setup-shell">
|
<div class="setup-shell">
|
||||||
<div class="pill">Setup</div>
|
<div class="pill">Setup</div>
|
||||||
@@ -697,7 +689,6 @@ if ($activeSetupSection === 'setup-section-custom' && !$hasCustomSection) {
|
|||||||
|
|
||||||
<div class="setup-shell__content">
|
<div class="setup-shell__content">
|
||||||
<form method="post" class="setup-form">
|
<form method="post" class="setup-form">
|
||||||
<input type="hidden" name="active_setup_section" value="<?= e($activeSetupSection) ?>">
|
|
||||||
<datalist id="timezone-options">
|
<datalist id="timezone-options">
|
||||||
<?php foreach ($timezoneOptions as $timezoneOption): ?>
|
<?php foreach ($timezoneOptions as $timezoneOption): ?>
|
||||||
<option value="<?= e((string) $timezoneOption['value']) ?>"><?= e((string) $timezoneOption['label']) ?></option>
|
<option value="<?= e((string) $timezoneOption['value']) ?>"><?= e((string) $timezoneOption['label']) ?></option>
|
||||||
|
|||||||
Reference in New Issue
Block a user