瀏覽代碼

fix filesystem input box default value in dashboard widget

Tim Fry 1 年之前
父節點
當前提交
be3783914c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resources/dashboard/maintenance.php

+ 1 - 1
resources/dashboard/maintenance.php

@@ -410,7 +410,7 @@ if (permission_exists('maintenance_view')) {
 			$filesystem_input_days_style = "";
 		}
 		if (permission_exists('maintenance_edit')) {
-			echo "<input class='formfld' style='width: 20%; min-width: 40px;$filesystem_input_days_style' type='text' name='filesystem_retention_days[$x][days]' id='filesystem_days_$x' placeholder='days' maxlength='255' value='$filesystem_days'>";
+			echo "<input class='formfld' style='width: 20%; min-width: 40px;$filesystem_input_days_style' type='text' name='filesystem_retention_days[$x][days]' id='filesystem_days_$x' placeholder='days' maxlength='255' value='" . ($filesystem_checkbox_state === CHECKBOX_CHECKED ? $filesystem_days : $filesystem_default_value) . "'>";
 			echo "<input type='hidden' id='filesystem_uuid_$x' name='filesystem_retention_days[$x][uuid]' value='$filesystem_setting_uuid'>";
 			echo "<input type='hidden' id='filesystem_category_$x' name='filesystem_retention_days[$x][category]' value='$filesystem_category'>";
 			echo "<input type='hidden' id='filesystem_subcategory_$x' name='filesystem_retention_days[$x][subcategory]' value='$filesystem_subcategory'>";