Changeset 4705
- Timestamp:
- 12/04/06 12:21:46 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/midcom.helper.datamanager2/controller/simple.php
r3199 r4705 82 82 83 83 $result = $this->formmanager->process_form(); 84 84 echo $this->datamanager->types['continuous']->value; 85 85 // Handle successful save explicitly. 86 86 if ( $result == 'save' trunk/src/midcom.helper.datamanager2/formmanager.php
r4507 r4705 653 653 * @return string One of 'editing', 'save', 'next', 'previous' and 'cancel' 654 654 */ 655 function process_form( )655 function process_form($ajax_mode = false) 656 656 { 657 657 $_MIDCOM->cache->content->no_cache(); … … 680 680 foreach ($this->widgets as $name => $copy) 681 681 { 682 /*if (!array_key_exists($name, $results)) 683 { 684 $results[$name] = null; 685 } 686 $this->widgets[$name]->sync_type_with_widget($results); 687 */ 688 if (array_key_exists($name, $results)) 689 { 682 if ($ajax_mode) 683 { 684 if (array_key_exists($name, $results)) 685 { 686 $this->widgets[$name]->sync_type_with_widget($results); 687 } 688 } 689 else 690 { 691 if (!array_key_exists($name, $results)) 692 { 693 $results[$name] = null; 694 } 690 695 $this->widgets[$name]->sync_type_with_widget($results); 691 696 } trunk/src/midcom.helper.datamanager2/formmanager/ajax.php
r4562 r4705 192 192 function process_form() 193 193 { 194 $this->_exitcode = parent::process_form( );194 $this->_exitcode = parent::process_form(true); 195 195 196 196 // Process next/previous
