Editor v1.5.2, .Net code issue - the type paging and ordering values have has changed

Editor v1.5.2, .Net code issue - the type paging and ordering values have has changed

jmo21jmo21 Posts: 13Questions: 3Answers: 0
edited November 2015 in Bug reports

the draw section in DTRequest.cs throws a System.InvalidCastException at line 238:

Start = (int)http["start"];

the http["start"] is coming through as a string now (eg "0"), whereas it used to come through as an int.

Changing this line of code to the following fixes the issue:

Start = int.Parse(http["start"].ToString());

Similar issue on line 252:

Column = (int)order["column"],

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 54,900Questions: 1Answers: 8,605 Site admin
    Answer ✓

    Hi - thanks for flagging this up! Really sorry for this error.

    The error was introduced in the _HttpConv function (same class - DTRequest). If you search for:

    // Numeric looking data, but with leading zero
    if (dataIn.IndexOf('0'))
    

    and replace with:

    // Numeric looking data, but with leading zero
    if (dataIn.IndexOf('0') == 0 && dataIn.Length > 1)
    

    That will correct the error.

    It will be in 1.5.3 which will be released in the next week or two.

    Regards,
    Allan

  • jmo21jmo21 Posts: 13Questions: 3Answers: 0

    thanks Allan!

This discussion has been closed.