Changeset 11955
- Timestamp:
- 08/31/07 18:03:59 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.helper.datamanager2/datamanager.php
r11908 r11955 43 43 44 44 /** 45 * The id (array index) of the current schema 46 * @var string schema_name 47 */ 48 var $schema_name 49 /** 45 50 * This is the storage implementation which is used for operation on the types. It encaspulates 46 51 * the storage target. … … 132 137 133 138 $this->schema =& $this->_schemadb[$name]; 139 $this->schema_name = $name; 134 140 135 141 return $this->_load_types(); … … 199 205 foreach ($this->schema->fields as $name => $config) 200 206 { 207 if (!isset($config['type']) ) 208 { 209 throw new Exception("The field "$name" is missing type"); 210 } 211 201 212 $filename = MIDCOM_ROOT . "/midcom/helper/datamanager2/type/{$config['type']}.php"; 202 213 $classname = "midcom_helper_datamanager2_type_{$config['type']}"; trunk/midcom/midcom.helper.datamanager2/formmanager.php
r11359 r11955 700 700 { 701 701 // Validate the from. 702 debug_push_class(__CLASS__, __FUNCTION__);703 debug_print_r('this->form', $this->form);704 debug_print_r("\$GLOBALS['_HTML_QuickForm_registered_rules']", $GLOBALS['_HTML_QuickForm_registered_rules']);705 debug_pop();706 702 if (! $this->form->validate()) 707 703 { 708 704 debug_push_class(__CLASS__, __FUNCTION__); 709 705 debug_add('Failed to validate the form, reverting to edit mode.'); 710 debug_print_r('Results were:', $results);706 //debug_print_r('Results were:', $results); 711 707 debug_pop(); 712 708 $exitcode = 'edit';
