Closed agitator closed 3 years ago
Probably an field.lsplit('_', 1)
would fix it?
@jensens I think field.rsplit('_', 1)
is the correct fix. Only the last part is allowed as index operator. But in @agitator 's case its also wrong, because he doesn't pass any operators to the index. The only way to get around this is to submit the query value as dict
to skip the "underscore" logic ...
just found this open PR: https://github.com/zopefoundation/Products.ZCatalog/pull/79 ... if this gets updated with update: this PR solves this issue without rsplit
rsplit
because of field.split(iid + "_")
... more elegant
/cc @thet
Fixed in #116.
While updating a Plone 5.0.4 site to 5.2.3 I ran into this Error
Looks like the changes in https://github.com/zopefoundation/Products.ZCatalog/commit/64b1f3ba7ae1e598e65006d68e6f1d8258ae66b0 cause this error.