metasfresh / metasfresh-webui-frontend-legacy

metasfresh Webui Frontend
GNU General Public License v2.0
57 stars 34 forks source link

Document filters: don't send empty string valueTo when there is no valueTo #2040

Open metas-dh opened 5 years ago

metas-dh commented 5 years ago

Is this a bug or feature request?

Bug

What is the current behavior?

When you change the filter params sev. times, the results are not correct.

Which are the steps to reproduce?

  1. open e.g. sales order window/143
  2. filter for bpartner TestKunde: => orders of that partner displayed, OK
  3. add other filter params, e.g. for order no. or docstatus so you get no results
  4. take out the params so that only param for bpartner TestKunde remains: => no results, NOK

    What is the expected or desired behavior?

    Shall work.


LE: because of https://github.com/metasfresh/metasfresh-webui-api/issues/1102, the effect of this task is canceled, but the requirement of not sending valueTo:"" remains.

teosarca commented 5 years ago

That's happening because frontend transmits the valueTo as '' (empty string). It shall send null.

image

siemiatj commented 5 years ago

I can't reproduce this. Since this was fixed on the backend I guess we can close it, right ?

teosarca commented 5 years ago

I guess we can close it, right ?

yes and no. I mean:

teosarca commented 5 years ago

let's lower the priority because is no longer a show stopper and we shall fix it in future.