Skip to content
Snippets Groups Projects

Fixes #799, #729, #512

Merged Satish requested to merge satish.dvnk/vtigercrm:prega into master
3 files
+ 6
4
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 7c5f21e4
    Fixes #729: Special treatment to set default mandatory owner field · 7c5f21e4
    Satish authored
@@ -19,9 +19,6 @@ mobileapp.controller('VtigerEditController', function ($scope, $api, $mdToast, $
if(newrecord){
if (typeof field.default != 'undefined') field.raw = field.default;
else if (typeof field.type.defaultValue != 'undefined') field.raw = field.type.defaultValue;
// Special case
if (field.type.name == 'owner' && field.mandatory && !field.raw) { field.raw = "19x" + $scope.userinfo.id; }
}
if(!newrecord && value){
field.raw = value;
Loading