Changeset 551 for trunk/Common/Form/Form.php
- Timestamp:
- Jul 7, 2013, 9:26:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Form.php
r548 r551 172 172 if(!array_key_exists('ReadOnly', $Item)) $Item['ReadOnly'] = false; 173 173 if($Item['ReadOnly'] == false) 174 if(!array_key_exists($Item['Type'], $this->FormManager->FormTypes) or175 (array_key_exists($Item['Type'], $this->FormManager->FormTypes) and176 ($this->FormManager->FormTypes[$Item['Type']]['Type'] != 'ManyToOne')))177 {178 if(!array_key_exists($Index, $this->Values) and isset($Item['Default'])) $this->Values[$Index] = $Item['Default'];179 $Parameters = array('Value' => $this->Values[$Index], 'Name' => $Index,174 if(!array_key_exists($Item['Type'], $this->FormManager->FormTypes) or 175 (array_key_exists($Item['Type'], $this->FormManager->FormTypes) and 176 ($this->FormManager->FormTypes[$Item['Type']]['Type'] != 'ManyToOne'))) 177 { 178 if(!array_key_exists($Index, $this->Values) and isset($Item['Default'])) $this->Values[$Index] = $Item['Default']; 179 $Parameters = array('Value' => $this->Values[$Index], 'Name' => $Index, 180 180 'Type' => $Item['Type'], 'Values' => $this->Values); 181 181 … … 194 194 $Values[$Index] = $this->FormManager->Type->ExecuteTypeEvent($UseType, 'OnSaveDb', $Parameters); 195 195 if(($Item['Type'] == 'Password') and ($Values[$Index] == '')) unset($Values[$Index]); 196 }196 } 197 197 } 198 198 if($Id == 0)
Note:
See TracChangeset
for help on using the changeset viewer.