[Phpmyadmin-devel] nested forms problem

Marc Delisle DelislMa at CollegeSherbrooke.qc.ca
Fri Feb 6 06:03:03 CET 2004


Hi,

since the addition of the multi-row delete (and edit) feature,
we have a nested forms situation when PMA_linkOrButton() decides
that (probably due to a missing primary key), a generated link
would be too long, and creates a mini form instead.

I see 2 solutions:

1. When called from display_tbl.lib or display_tbl_links.lib,
pass an additional parameter to PMA_linkOrButton(), which would
tell the function to avoid creating a button via a form if the URL
length is too big. So the only way to edit or delete this row
would be by ticking and use "With selected".

2. Before starting the form that calls tbl_row_delete, try to
detect if the rows data is going to trigger the generation of
a button, and if so, do not offer the multi- feature. The absence
of no unique keys would be a case.

Comments?

Marc





More information about the Developers mailing list