Commit 7283e48 1 parent 190ec9a commit 7283e48 Copy full SHA for 7283e48
File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,6 @@ export default class AppContext {
494
494
if ( typeof class_names == "string" ) {
495
495
class_names = { ...this . crudGetChildren ( class_names ) } ;
496
496
}
497
- //
498
497
let children = this . crudGetChildren ( class_names ) ;
499
498
if ( children ) {
500
499
class_names = { ...children } ;
@@ -645,11 +644,11 @@ export default class AppContext {
645
644
// Search below starts with row 0.
646
645
let found_row = this . crudFindByKeyVals ( pdh , p_KeyVals ) ;
647
646
// Looking for another record besides parent being deleted.
648
- if ( found_row != null && found_row == parent_row )
649
- found_row = this . crudFindByKeyVals ( pdh , p_KeyVals , parent_row ) ;
647
+ if ( found_row == parent_row )
648
+ found_row = this . crudFindByKeyVals ( pdh , p_KeyVals , parent_row + 1 ) ;
650
649
// If at least one other row has the keyVals_p, then no need to delete
651
650
// dependent records.
652
- if ( found_row ! = null ) {
651
+ if ( found_row = = null ) {
653
652
let found_rows = [ ] ;
654
653
// Now find any DEPENDENT table rows that have to be deleted.
655
654
found_row = this . crudFindByKeyVals ( ddh , d_KeyVals ) ;
You can’t perform that action at this time.
0 commit comments