Skip to content
Snippets Groups Projects
Commit 32fc9ba6 authored by Prasad's avatar Prasad
Browse files

Fixes #792: Trigger data preparation when user context is available

parent 7fb85240
No related branches found
No related tags found
1 merge request!311Language italian translation
......@@ -119,9 +119,13 @@ mobileapp.controller('VtigerEditController', function ($scope, $api, $mdToast, $
$scope.loadFields();
}
else{
$scope.$root.$on('UserInfo.Changed', function(){
prepareCreateData(true);
});
if ($scope.userinfo) {
prepareCreateData(true);
} else {
$scope.$root.$on('UserInfo.Changed', function(){
prepareCreateData(true);
});
}
}
});
......
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