Skip to content
Snippets Groups Projects
Commit fe6e9303 authored by Uma's avatar Uma
Browse files

Ajax edit of picklist values save from list, detail

parent 0745e82d
No related branches found
No related tags found
1 merge request!471Ajax edit of picklist values save from list, detail
......@@ -158,9 +158,6 @@ class Vtiger_Save_Action extends Vtiger_Action_Controller {
foreach ($fieldModelList as $fieldName => $fieldModel) {
$fieldValue = $request->get($fieldName, null);
$fieldDataType = $fieldModel->getFieldDataType();
if($fieldValue){
$fieldValue = Vtiger_Util_Helper::validateFieldValue($fieldValue,$fieldModel);
}
if($fieldDataType == 'time' && $fieldValue !== null){
$fieldValue = Vtiger_Time_UIType::getTimeValueWithSeconds($fieldValue);
}
......
......@@ -102,9 +102,6 @@ class Vtiger_SaveAjax_Action extends Vtiger_Save_Action {
}else if($fieldName === $request->get('field')){
$fieldValue = $request->get('value');
}
if($fieldValue){
$fieldValue = Vtiger_Util_Helper::validateFieldValue($fieldValue,$fieldModel);
}
$fieldDataType = $fieldModel->getFieldDataType();
if ($fieldDataType == 'time' && $fieldValue !== null) {
$fieldValue = Vtiger_Time_UIType::getTimeValueWithSeconds($fieldValue);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment