|
phpMyEdit - Viewing Bug Advanced Details |
[ Go Back ]
|
|
|
ID:
|
Category:
|
Severity:
|
Reproducibility:
|
Date Submitted:
|
Last Update:
|
|
216 |
core / general |
feature |
always |
2004-04-09 12:38 |
2004-05-20 14:27 |
|
|
Reporter:
|
michal |
Platform:
|
|
|
|
Assigned To:
|
|
OS:
|
|
|
|
Priority:
|
normal |
Version:
|
|
|
|
Status:
|
feedback |
Product Version:
|
current from CVS |
|
|
Product Build:
|
130 |
Resolution:
|
open |
|
|
Projection:
|
none |
Duplicate ID:
|
|
|
|
ETA:
|
none |
|
|
|
Summary:
|
hidden variables |
|
Description:
|
currently, hidden variables (such as page number, filters, sorting, persist, ...) are defined at 3 diferent places. This makes it possible to return to exactly the same place after hiting cancel button.
|
|
Steps To Reproduce:
|
|
|
Additional Information / Solution:
|
attached patch defines function return_hidden_vars which returns all hidden variables necessary. other two auxiliary functions create input hidden elements or href strings for use in parts of pme. |
|
Attached Files:
|
0000216-hidden.vars.130.diff.txt (9 KB) 1970-01-01 01:33 0000216-hidden.vars-v2.130.diff.txt (12 KB) 1970-01-01 01:33 0000216-hidden.vars-v4.130.diff.txt (14 KB) 1970-01-01 01:33 0000216-hidden.vars-v5.130.diff.txt (15 KB) 1970-01-01 01:33 |
|
Bug Notes |
|
|
|
|
this is connected to http://platon.sk/forum/projects/viewtopic.php?t=249 |
|
|
|
|
a new v2 patch against 130 cvs uploaded. some code cleanup and optimalizations.
after closely studing pme code, new return_hidden_variables now appears in 8 places :-). core class is now 2.3 kb less. |
|
|
|
|
This is nice, however there are some problems:
1. SFN and similar string values are not decoded.
2. Pure '&' is used as URL variables separator in HTML code, while ' ' should be used.
3. Values and keys are not HTML escaped.
I will try to find time to fix this and apply into CVS. |
|
|
|
|
2, ok, line line patch (just href_hidden_vars)
3,1, i think this should be done in input_hidden_vars and href_hidden_vars. sometimes, the result is ran through htmlspecialchars(), sometimes not.
after some rethinking, href_hidden_vars and input_hidden_vars are not good names. these function have nothing to do with hidden_vars, but they just return hidden or href elements from any given array. just a cosmetic change. |
|
|
|
|
|
Btw. why get_orig_vars() method is lost? It is very good method I think... It took some long time to have it working 100% properly. I think that already debuged and proven code should not be so easily discarded. |
|
|
|
|
new version uploaded. this one is really working, it produces the same output as cvs version. (most of the problem was applying htmlspecialchars twice :) )
get_orig_vars isn't lost just was divided into several other function... same with get_sfn. if you looked in the code of the new functions, you will see many similarities. but they are totally the same :)
so what do you think ? |
|
|
|
|
|
new version uploaded (5). the only difference is in moving of hidden variables in form_begin(). i believe it fits there a lot more. also some preparation for S mode is done, filters on non displayed columns are preserved. |
|