owl-cli 6.174.0 → 6.175.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -553,12 +553,13 @@ var @projectCodeService = (function (pigeon) {
|
|
|
553
553
|
data['_t'] = spec['_t']
|
|
554
554
|
try {
|
|
555
555
|
var meta = spec['#meta'];
|
|
556
|
-
|
|
557
|
-
f.updateParentPath(data);
|
|
558
|
-
}
|
|
556
|
+
|
|
559
557
|
|
|
560
558
|
EventBusService.fire(spec['_t'] + '_add_before', {data: data, env: env})
|
|
561
559
|
data.id = f.getId(data)
|
|
560
|
+
if(meta.isTree){
|
|
561
|
+
f.updateParentPath(data);
|
|
562
|
+
}
|
|
562
563
|
pigeon.lock(f.getLock(data))
|
|
563
564
|
f.saveUniqueFields(data, env)
|
|
564
565
|
pigeon.saveObject(data.id, data)
|