Menu

#126 ListBox ItemIndex not serialized

open
Component (61)
7
2008-09-24
2008-09-11
wniva
No

The value ItemIndex in the component ListBox will not by serialized (other list components not tested).

Is this behavior as accurate ?

If not, the problem it seems to be that the serialize function only search to "set..." methods (controls.inc.php). However used for "ItemIndex" the "writeItemIndex" method (stdctrls.inc.php, controls.inc.php). I think this is the causing for this problem.

Discussion

  • wniva

    wniva - 2008-09-24

    I have testet the ComboBox and here is the serialized of the ItemIndex correctly.

    If the following changes inserted (equal to ComboBox), then works the ListBox also correctly:
    (stdctrls.inc.php)
    insert this lines in class ListBox (line 3415, SVN 257):

    function getItemIndex()
    {
    return $this->readItemIndex();
    }
    function setItemIndex($value)
    {
    $this->writeItemIndex($value);
    }

     
  • wniva

    wniva - 2008-09-24
    • priority: 5 --> 7
    • assigned_to: nobody --> ttm
     

Log in to post a comment.

MongoDB Logo MongoDB