Skip to content
Snippets Groups Projects
Commit 2b755590 authored by Prasad's avatar Prasad
Browse files

Fixes #733: Pick default value configured for field (picklist or non-picklist)

parent a20fd40b
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,8 @@ mobileapp.controller('VtigerEditController', function ($scope, $api, $mdToast, $
$scope.editdata = [];
var _processFields = function(field, newrecord, value){
if(newrecord){
field.raw = field.type.defaultValue;
if (typeof field.default != 'undefined') field.raw = field.default;
else if (typeof field.type.defaultValue != 'undefined') field.raw = field.type.defaultValue;
}
if(!newrecord && value){
field.raw = value;
......
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