public function configupdateJsonAction()
 {
     $unitTypesModel = new RM_UnitTypes();
     $prices = $this->_getParam("prices", array());
     foreach ($prices as $unitID => $priceModuleName) {
         $unitType = $unitTypesModel->find($unitID)->current();
         if ($unitType !== null) {
             $unitType->price = $priceModuleName;
             $unitType->save();
         }
     }
     $defaultTypeID = $this->_getParam('rm_default_system_unit_type');
     if ($defaultTypeID !== null) {
         $unitType = $unitTypesModel->find($defaultTypeID)->current();
         if ($unitType !== null) {
             $module = new RM_Module_UnitTypeManager();
             $module->makeDefault($unitType);
         }
     }
     return array('data' => array('success' => true));
 }