Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17ce188

Browse files
committed
value tab offset error corrected
1 parent e60f535 commit 17ce188

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

libraries/insert_edit.lib.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,8 @@ function PMA_getHtmlForInsertEditFormHeader($has_blob_field, $is_upload)
26832683
* @param bool $insert_mode whether insert mode
26842684
* @param array $current_row current row
26852685
* @param bool $odd_row whether odd row
2686-
* @param int $o_rows row offset
2686+
* @param int &$o_rows row offset
2687+
* @param int &$tabindex tab index
26872688
* @param int $columns_cnt columns count
26882689
* @param bool $is_upload whether upload
26892690
* @param int $tabindex_for_function tab index offset for function
@@ -2703,7 +2704,7 @@ function PMA_getHtmlForInsertEditFormHeader($has_blob_field, $is_upload)
27032704
*/
27042705
function PMA_getHtmlForInsertEditFormColumn($table_columns, $i, $column, $comments_map,
27052706
$timestamp_seen, $current_result, $chg_evt_handler, $jsvkey, $vkey,
2706-
$insert_mode, $current_row, $odd_row, $o_rows, $columns_cnt, $is_upload,
2707+
$insert_mode, $current_row, $odd_row, &$o_rows, &$tabindex, $columns_cnt, $is_upload,
27072708
$tabindex_for_function, $foreigners, $tabindex_for_null, $tabindex_for_value,
27082709
$table, $db, $row_id, $titles, $biggest_max_file_size,
27092710
$default_char_editing, $text_dir
@@ -2848,6 +2849,7 @@ function PMA_getHtmlForInsertEditFormColumn($table_columns, $i, $column, $commen
28482849
* @param bool $insert_mode whether insert mode
28492850
* @param array $current_row current row
28502851
* @param int &$o_rows row offset
2852+
* @param int &$tabindex tab index
28512853
* @param int $columns_cnt columns count
28522854
* @param bool $is_upload whether upload
28532855
* @param int $tabindex_for_function tab index offset for function
@@ -2865,17 +2867,13 @@ function PMA_getHtmlForInsertEditFormColumn($table_columns, $i, $column, $commen
28652867
*/
28662868
function PMA_getHtmlForInsertEditRow($url_params, $table_columns,
28672869
$column, $comments_map, $timestamp_seen, $current_result, $chg_evt_handler,
2868-
$jsvkey, $vkey, $insert_mode, $current_row, &$o_rows, $columns_cnt,
2870+
$jsvkey, $vkey, $insert_mode, $current_row, &$o_rows, &$tabindex, $columns_cnt,
28692871
$is_upload, $tabindex_for_function, $foreigners, $tabindex_for_null,
28702872
$tabindex_for_value, $table, $db, $row_id, $titles,
28712873
$biggest_max_file_size, $text_dir
28722874
) {
28732875
$html_output = PMA_getHeadAndFootOfInsertRowTable($url_params)
28742876
. '<tbody>';
2875-
2876-
// Sets a multiplier used for input-field counts
2877-
// (as zero cannot be used, advance the counter plus one)
2878-
$m_rows = $o_rows + 1;
28792877

28802878
//store the default value for CharEditing
28812879
$default_char_editing = $GLOBALS['cfg']['CharEditing'];
@@ -2885,7 +2883,7 @@ function PMA_getHtmlForInsertEditRow($url_params, $table_columns,
28852883
$html_output .= PMA_getHtmlForInsertEditFormColumn(
28862884
$table_columns, $i, $column, $comments_map, $timestamp_seen,
28872885
$current_result, $chg_evt_handler, $jsvkey, $vkey, $insert_mode,
2888-
$current_row, $odd_row, $o_rows, $columns_cnt, $is_upload,
2886+
$current_row, $odd_row, $o_rows, $tabindex, $columns_cnt, $is_upload,
28892887
$tabindex_for_function, $foreigners, $tabindex_for_null,
28902888
$tabindex_for_value, $table, $db, $row_id, $titles,
28912889
$biggest_max_file_size, $default_char_editing, $text_dir

tbl_change.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
$html_output .= PMA_getHtmlForInsertEditRow(
174174
$url_params, $table_columns, $column, $comments_map, $timestamp_seen,
175175
$current_result, $chg_evt_handler, $jsvkey, $vkey, $insert_mode,
176-
isset($current_row) ? $current_row : null, $o_rows, $columns_cnt,
176+
isset($current_row) ? $current_row : null, $o_rows, $tabindex, $columns_cnt,
177177
$is_upload, $tabindex_for_function, $foreigners, $tabindex_for_null,
178178
$tabindex_for_value, $table, $db, $row_id, $titles,
179179
$biggest_max_file_size, $text_dir

0 commit comments

Comments
 (0)