Update patchtester.js

This commit is contained in:
Dimitris Grammatikogiannis 2023-10-10 10:34:02 +03:00 committed by GitHub
parent 2434668162
commit 28871503bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,11 @@ const PatchTester = {
* @param {Number} id The item ID
*/
submitpatch: (task, id) => {
document.getElementById('pull_id')?.value = id;
const value = document.getElementById('pull_id')?.value;
if (value) {
value = id;
}
Joomla.submitform(task);
}