Changeset 502 for trunk/Common/Form/Types/OneToMany.php
- Timestamp:
- Mar 12, 2013, 10:58:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Types/OneToMany.php
r501 r502 7 7 function OnView($Item) 8 8 { 9 $Type = $this-> System->Type->TypeDefinitionList[$Item['Type']];9 $Type = $this->FormManager->Type->TypeDefinitionList[$Item['Type']]; 10 10 if($Item['Value'] != '') 11 11 { 12 12 if(array_key_exists('View', $Type['Parameters'])) $Table = $Type['Parameters']['View']; 13 13 else $Table = $Type['Parameters']['Table']; 14 $DbResult = $this-> System->Database->query('SELECT '.$Type['Parameters']['Name'].14 $DbResult = $this->Database->query('SELECT '.$Type['Parameters']['Name']. 15 15 ' AS `Name` FROM '.$Table.' WHERE `'. 16 16 $Type['Parameters']['Id'].'`='.$Item['Value']);
Note:
See TracChangeset
for help on using the changeset viewer.