示例#1
0
 public function saveOrder(Vtiger_Request $request)
 {
     $pickListFieldName = $request->get('picklistName');
     $picklistValues = $request->get('picklistValues');
     $moduleModel = new Settings_Picklist_Module_Model();
     $response = new Vtiger_Response();
     try {
         $moduleModel->updateSequence($pickListFieldName, $picklistValues);
         $response->setResult(array('success', true));
     } catch (Exception $e) {
         $response->setError($e->getCode(), $e->getMessage());
     }
     $response->emit();
 }