Changeset 179 for trunk/forms.php


Ignore:
Timestamp:
Mar 24, 2009, 10:25:21 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Ukládání uživatelského nastavení mazalo některé sloupce.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forms.php

    r148 r179  
    140140      }
    141141    }
    142     $this->Values['Id'] = $Id;
    143     $DbResult = $Database->replace($this->Definition['Table'], $this->Values);
     142    if($Id == 0)
     143    {
     144      $this->Values['Id'] = $Id;
     145      $DbResult = $Database->replace($this->Definition['Table'], $this->Values);
     146    } else
     147    $DbResult = $Database->update($this->Definition['Table'], 'Id='.$Id, $this->Values);
    144148    //echo($Database->LastQuery);
    145149  }
Note: See TracChangeset for help on using the changeset viewer.