config.order_branch not sending appropriate params to server

Currently using the following setup for my Gantt charts.

gantt.config.order_branch = true
gantt.config.order_branch_free = true

This works well on the client side. Then I follow this guide for the sort order. docs.dhtmlx.com/gantt/desktop__ … deroftasks
Again, this guide’s logic is correct.

However, the client side doesn’t send the appropriate “target” parameter.

Let’s say you have the following hierarchy.

#1
#2
#3
#4

Then you move #3, above #2. So it will look like:

#1
#3
#2
#4

The client side sends the target parameter as “#4”, when it should actually be #2.
I am using version 5.05. Thanks in advance.

Sometimes when you copy the text from guides, newline characters are not copied to the configuration files. Thus, instead of two lines you get only one line and in some cases it causes the problem even for Ruby. Please check that you have the same number of strings in the configuration files like it is shown in the guide.
Also, please check the official implementation of Ruby on Rails with Gantt demo:
github.com/DHTMLX/gantt-howto-rails
But try it with a new database, not the one you already have. If you can reproduce it in the demo, compare configuration files in the demo with configuration files in your app.