Ignore:
Timestamp:
Jan 2, 2016, 12:19:23 AM (9 years ago)
Author:
chronos
Message:
  • Fixed: Processing of table update mechanizm.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Finance/Manage.php

    r761 r773  
    204204    $DbResult = $this->Database->select($Table, '*', '(`ChangeAction` IS NOT NULL) AND '.
    205205      '(`ChangeTime` <= "'.TimeToMysqlDateTime($Time).'") ORDER BY `ChangeTime` ASC');
    206     while($Service = $DbResult->fetch_array())
     206    while($Service = $DbResult->fetch_assoc())
    207207    {
    208208      if($Service['ChangeAction'] == 'add')
     
    211211        unset($Service['ChangeReplaceId']);
    212212        unset($Service['ChangeAction']);
     213        unset($Service['ChangeTime']);
    213214        $this->Database->insert($Table, $Service);
    214215      } else
     
    219220        $ReplaceId = $Service['ChangeReplaceId'];
    220221        unset($Service['ChangeReplaceId']);
    221         $this->Database->update($Table, 'Id='.$ReplaceId, $Service);
     222        unset($Service['ChangeTime']);
     223        $this->Database->update($Table, '`Id`='.$ReplaceId, $Service);
    222224      } else
    223225      if($Service['ChangeAction'] == 'delete')
Note: See TracChangeset for help on using the changeset viewer.