Changeset 647 for trunk/Common/Form/Form.php
- Timestamp:
- Mar 25, 2014, 7:09:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Form.php
r639 r647 162 162 } 163 163 $Columns = implode(',', $Columns); 164 $DbResult = $this->Database->query('SELECT '.$Columns.' FROM `'.$this->Definition['Table'].'` AS `T` WHERE `T`.`Id`='.$Id); 164 if(array_key_exists('SQL', $this->Definition)) 165 $SourceTable = '('.$this->Definition['SQL'].') AS `TX`'; 166 else $SourceTable = '`'.$this->Definition['Table'].'` AS `TX`'; 167 $DbResult = $this->Database->query('SELECT '.$Columns.' FROM '.$SourceTable.' WHERE `TX`.`Id`='.$Id); 165 168 $DbRow = $DbResult->fetch_array(); 166 169 foreach($this->Definition['Items'] as $Index => $Item)
Note:
See TracChangeset
for help on using the changeset viewer.