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 55/**
66 * Class Assignments
77 *
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.
911 *
1012 * This is a singleton. Assignment data is only loaded once per request.
1113 *
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ public function addSchemas($schemas)
4747 $ subOr = $ subAnd ->whereSubOr ();
4848 $ subOr ->whereAnd ("GETACCESSLEVEL( $ datatable.pid) > 0 " );
4949 $ 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)) " );
5152
5253 // add conditional schema assignment check
5354 $ this ->qb ->addLeftJoin (
You can’t perform that action at this time.
0 commit comments