We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31213
    • 153 Posts
    may be my english is rather poor, and if you unlike russians you shouldn’t read it wink

    I created a TV with DataGrid widget (see datagridbug1.png in attachment).
    Then I set values in document to TV (2.png).
    And then document looked as one column with only non UTF-8 symbol in first cell (3.png).

    I took datagrid classes http://svn.modxcms.com/svn/tattoo/tattoo/releases/1.0-pre3.1/manager/includes/controls and got , but they were unhelpful.
    But this classes and older classes work well with MySQL data (for example, meta-tags editor).
    So problem was only with non MySQL data (only text) sad

    My searching in modxcms.com doesn’t gave me any good result. May be nobody faced the challenge.

    And I made a bugfix for this problem:
    datagrid.class.php before (174 line)
    $this->_coltypes = explode((strstr($this->colTypes,"||")!==false ? "||":","),$this->colTypes);
    $this->_colcount = count($this->_colnames);
    $tblColHdr ="<tr>";
    for($c=0;$c<$this->_colcount;$c++){
    

    after:
    $this->_coltypes = explode((strstr($this->colTypes,"||")!==false ? "||":","),$this->colTypes);
    $this->_colcount = count($this->_colnames);
    if(!$this->_isDataset) {
        $this->ds = explode((strstr($this->ds,"||")!==false ? "||":","),$this->ds);
        $this->ds = array_chunk($this->ds, $this->_colcount);
    }
    $tblColHdr ="<tr>";
    for($c=0;$c<$this->_colcount;$c++){
    

    With this bugfix my document look so (4.png)


    May be I’m not right, and it’s bullshit smiley) But may be it must be fixed in next releases.
      • 31213
      • 153 Posts
      • Quote from: Vadya at Jun 28, 2008, 08:00 AM

        task - http://modxcms.com/bugs/task/1074
        We appreciate your contributions. Please use our new bug tracking system at http://svn.modxcms.com/jira/ for reporting bugs in the future. The Flyspray bug tracker is being phased out.

        Cheers.