mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-01-02 22:50:27 +00:00
Update patchtester.js
This commit is contained in:
parent
2434668162
commit
28871503bf
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user