This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
In sync.js, set parent for a child
version-14
Anand Doshi
11 years ago
parent
445ba943c7
commit
8a93003e65
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
frappe/public/js/frappe/model/sync.js
+ 1
- 0
frappe/public/js/frappe/model/sync.js
View File
@@ -75,6 +75,7 @@ $.extend(frappe.model, {
$.each(doc, function(key, value) {
if($.isArray(value)) {
$.each(value, function(i, d) {
if(!d.parent) d.parent = doc.name;
frappe.model.add_to_locals(d);
});
}
Write
Preview
Loading…
Cancel
Save