Skip to content

Commit 2887150

Browse files
authored
Update patchtester.js
1 parent 2434668 commit 2887150

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

media/com_patchtester/js/patchtester.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ const PatchTester = {
2323
* @param {Number} id The item ID
2424
*/
2525
submitpatch: (task, id) => {
26-
document.getElementById('pull_id')?.value = id;
26+
const value = document.getElementById('pull_id')?.value;
27+
28+
if (value) {
29+
value = id;
30+
}
2731

2832
Joomla.submitform(task);
2933
}

0 commit comments

Comments
 (0)