File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 5
5
/**
6
6
* Class Assignments
7
7
*
8
- * Manages the assignment of schemas (table names) to pages and namespaces
8
+ * Manages the assignment of schemas (table names) to pages and namespaces.
9
+ * An assignment is created when actual struct data is attached to the page.
10
+ * Assignment are never deleted, only their "assigned" status is changed.
9
11
*
10
12
* This is a singleton. Assignment data is only loaded once per request.
11
13
*
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ public function addSchemas($schemas)
47
47
$ subOr = $ subAnd ->whereSubOr ();
48
48
$ subOr ->whereAnd ("GETACCESSLEVEL( $ datatable.pid) > 0 " );
49
49
$ subOr ->whereAnd ("PAGEEXISTS( $ datatable.pid) = 1 " );
50
- $ subOr ->whereAnd ('(ASSIGNED = 1 OR ASSIGNED IS NULL) ' );
50
+ // make sure to check assignment for page data only
51
+ $ subOr ->whereAnd ("( $ datatable.rid != 0 OR (ASSIGNED = 1 OR ASSIGNED IS NULL)) " );
51
52
52
53
// add conditional schema assignment check
53
54
$ this ->qb ->addLeftJoin (
You can’t perform that action at this time.
0 commit comments