Author Topic: [v1.7.5] Condition builder items are pasted in reverse order  (Read 1807 times)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
[v1.7.5] Condition builder items are pasted in reverse order
« on: April 02, 2019, 05:26:02 PM »
When multiple items in the condition builder are cut or copied, and subsequently pasted to an empty set of the Condition Builder, the order in which they are placed will be there reverse of their order when cut/copied. This does not happen when pasting to a non-empty set.

E.G.
Start with
Code: [Select]
[A] Equals ''
[B] Equals ''
[C] Equals ''

Cut those items to empty the set, the paste them back into it; Now you have
Code: [Select]
[C] Equals ''
[B] Equals ''
[A] Equals ''

Pasting while the bottom item is selected(pasting is disabled while multiple items are selected) will result in
Code: [Select]
[C] Equals ''
[B] Equals ''
[A] Equals ''
[A] Equals ''
[B] Equals ''
[C] Equals ''

The same applies when pasting with any other item selected; Empty list means reverse order, otherwise it's the original order.


Usually there is always at least one item in the list(creating a multipart command or adding a set opens the "Add a Condition Builder Condition" dialog), but when cutting or deleting items it is possible to empty out the list(which is presumably supposed to be possible, as there is a "There are no conditions. To get started, click on, 'Add condition'." message at the bottom of the window).


EDIT: Fixed in v1.7.5.4
« Last Edit: April 22, 2019, 10:24:27 PM by Pfeil »

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: [v1.7.5] Condition builder items are pasted in reverse order
« Reply #1 on: April 10, 2019, 08:21:09 PM »
I believe this one was wrangled.  Sorry for the late reply and thanks for the great detail, Pfeil.