1. 07 Jan, 2025 36 commits
  2. 03 Jan, 2025 1 commit
  3. 02 Jan, 2025 3 commits
    • Nicolas Wavrant's avatar
      erp5_web_renderjs_ui_test: test infinite listboxes · 95b9cfca
      Nicolas Wavrant authored
      Infinite listbox are listboxes for which the "lines" property is set to 0, meaning the listbox shouldn't try
      to paginate results.
      95b9cfca
    • Nicolas Wavrant's avatar
      erp5_web_renderjs_ui: do not ignore a listbox configuration of 0 lines · 913c2abb
      Nicolas Wavrant authored
      This is intentional, and means that no limit should be applied (iow: an infinite
      listbox). In this case, the limit parameter in the call to jIO should be set to 0,
      not undefined, otherwise the parameter will be dropped in the AJAX request,
      and later on be defaulted to 10 by ERP5Document_getHateoas.
      913c2abb
    • Nicolas Wavrant's avatar
      erp5_hal_json_style: do not limit infinite listboxes · 325c5563
      Nicolas Wavrant authored
      If the max number of lines of a listbox was set to 0, meaning "no limit set", then ERP5Document_getHateoas would still return a paginated list of 10 results, 10 being
      the default set in the parameters of ERP5Document_getHateoas.
      
      It looks like there is a beginning of support for such case in ERP5Document_getHateoas,
      with the appearance of code such as "if limit", but the bug comes from the lack of typing in the JS-jIO-JSON-ERP5's HAL interface. In case of a limit set to 0 in the listbox configuration, ERP5
      would receive the string "0" which is a non empty string. It would fail the condition and would
      be handled like there is a limit, or of 0 - so no result - or of a default limit chosen by the code.
      325c5563