From d76e90ccfb18564627e2a69f2bb3608452b758be Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 30 May 2023 17:11:13 +0800 Subject: [PATCH] * Ditto is not enabled by default in bug-batchEdit. --- module/bug/js/batchedit.ui.js | 2 -- module/bug/ui/batchedit.html.php | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/module/bug/js/batchedit.ui.js b/module/bug/js/batchedit.ui.js index 3550eee18d..1477b9a787 100644 --- a/module/bug/js/batchedit.ui.js +++ b/module/bug/js/batchedit.ui.js @@ -84,8 +84,6 @@ window.renderRowData = function($row, index, row) } } $assignedTo.find('option[value="closed"]').remove(); - - $row.find('[data-ditto]').attr('data-ditto', 'off'); } function setDuplicate(event) diff --git a/module/bug/ui/batchedit.html.php b/module/bug/ui/batchedit.html.php index 4a9eab8d72..f9ea86ea02 100644 --- a/module/bug/ui/batchedit.html.php +++ b/module/bug/ui/batchedit.html.php @@ -68,7 +68,7 @@ formBatchPanel set::width('160px'), set::required(isset($requiredFields['type'])), set::ditto(true), - set('data-ditto', 'off'), + set::defaultDitto('off') ), /* Field of severity. */ formBatchItem @@ -121,6 +121,7 @@ formBatchPanel set::width('200px'), set::required(isset($requiredFields['module'])), set::ditto(true), + set::defaultDitto('off') ), /* Field of assignedTo. */ formBatchItem @@ -132,6 +133,7 @@ formBatchPanel set::width('200px'), set::required(isset($requiredFields['assignedTo'])), set::ditto(true), + set::defaultDitto('off') ), /* Field of deadline. */ formBatchItem @@ -182,6 +184,7 @@ formBatchPanel set::width('200px'), set::required(isset($requiredFields['resolvedBy'])), set::ditto(true), + set::defaultDitto('off') ), /* Field of resolution. */ formBatchItem