Skip to content

Commit 72e920b

Browse files
committed
feat(form) Added ability to specify fields in new record
1 parent 122d29e commit 72e920b

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

dist/forms-angular.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3151,6 +3151,14 @@ var fng;
31513151
else {
31523152
// New record
31533153
ctrlState.master = {};
3154+
if ($location.$$search.r) {
3155+
try {
3156+
ctrlState.master = JSON.parse($location.$$search.r);
3157+
}
3158+
catch (e) {
3159+
console.log('Error parsing specified record ' + e.message);
3160+
}
3161+
}
31543162
$scope.phase = 'ready';
31553163
$scope.cancel();
31563164
}

0 commit comments

Comments
 (0)