-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Add Parameter' button not working for Add Routine Screen. #17833
Comments
This is where is stopped my debug diff --git a/js/src/database/routines.js b/js/src/database/routines.js
index 826a826c75..d966c2cb8c 100644
--- a/js/src/database/routines.js
+++ b/js/src/database/routines.js
@@ -929,7 +929,7 @@ AJAX.registerOnload('database/routines.js', function () {
* @var routine_params_table jQuery object containing the reference
* to the routine parameters table
*/
- const $routineParamsTable = $(this).closest('div.ui-dialog').find('.routine_params_table');
+ const $routineParamsTable = $(this).closest('form.rte_form').find('.routine_params_table');
/**
* @var new_param_row A string containing the HTML code for the
* new row for the routine parameters table
it relies on a template row that can not be found because the form is no longer open as ajax modal but as a page /**
* Execute some code after the ajax dialog for the editor is shown.
*
* @param data JSON-encoded data from the ajax request
*/
postDialogShow: function (data) {
// Cache the template for a parameter table row
DatabaseRoutines.paramTemplate = data.paramTemplate; If you apply my patch then more of the code is ran but without a working template row nothing can be added |
Hi @MauricioFauth |
I've been looking after this, couldn't find any commit / pr explaining why or when the listeners below on the navigation file, have been removed. phpmyadmin/js/src/navigation.js Lines 445 to 450 in 265e807
I can see a lot of deleted listeners from that file, and most probably this's the reason why it's now opening as a page, was it an intended refactor? I couldn't find a commit or a PR where those lines are deleted |
[ci skip] Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Describe the bug
On the screen to create a new procedure, when the 'Add Parameter' Button is clicked (even around the edges, which is the problem with other buttons currently) an additional parameter is not created.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
New parameters should be addable to the new procedure being created.
Screenshots
Server configuration
Client configuration
The text was updated successfully, but these errors were encountered: