Batching in ZSQLMethod test is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Products.ZSQLMethods |
Invalid
|
Low
|
Unassigned |
Bug Description
When using "Test" tab for ZSQLMethod which has some parameters
only first 20 results are shown correctly.
'(Next 20 results)' link is broken. It leads to page that says:
Error, exceptions.
SQL used:
Could not render the query template!
This is because of not passing query parameters in the '(Next 20 results)' link. There is additional, unnecessary 'query' parameter in this link that is always empty:
http://
Victor Safronovich (suvit) wrote : | #1 |
Maciej Wisniowski (pigletto) wrote : | #2 |
Uploaded: ZSQLTestHotfix.
I've found that changing two lines in file:
[ZOPE_HOME]
from:
<a href="&
(...)
<a href="&
to:
<a href="&
(...)
<a href="&
seems to solve this problem.
Victor Safronovich (suvit) wrote : | #3 |
using missing='' is wrong, because it renders as "''", but missing="" renders as empty string ""
affects: | zope2 → products.zsqlmethods |
Changed in products.zsqlmethods: | |
status: | New → Confirmed |
Colin Watson (cjwatson) wrote : | #4 |
The products.
Changed in products.zsqlmethods: | |
status: | Confirmed → Invalid |
the parameter 'query' is not empty, it equals to "''".