Commit cbc1144a17ea3d7a4721e8fefd1acc657b339b9b
1 parent
2063bd81
Clear all caches after fiddling in SQL behind the ORM's back.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5196 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
0 deletions
lib/permissions/permissionutil.inc.php
| @@ -454,11 +454,15 @@ class KTPermissionUtil { | @@ -454,11 +454,15 @@ class KTPermissionUtil { | ||
| 454 | $aParams = array($oNewPO->getID(), $oOrigPO->getID(), $sFolderIDs); | 454 | $aParams = array($oNewPO->getID(), $oOrigPO->getID(), $sFolderIDs); |
| 455 | DBUtil::runQuery(array($sQuery, $aParams)); | 455 | DBUtil::runQuery(array($sQuery, $aParams)); |
| 456 | 456 | ||
| 457 | + Folder::clearAllCaches(); | ||
| 458 | + | ||
| 457 | $sQuery = "UPDATE $default->documents_table SET | 459 | $sQuery = "UPDATE $default->documents_table SET |
| 458 | permission_object_id = ? WHERE permission_object_id = ? AND | 460 | permission_object_id = ? WHERE permission_object_id = ? AND |
| 459 | parent_folder_ids LIKE ?"; | 461 | parent_folder_ids LIKE ?"; |
| 460 | DBUtil::runQuery(array($sQuery, $aParams)); | 462 | DBUtil::runQuery(array($sQuery, $aParams)); |
| 461 | 463 | ||
| 464 | + Document::clearAllCaches(); | ||
| 465 | + | ||
| 462 | // All objects using this PO must be new and must need their | 466 | // All objects using this PO must be new and must need their |
| 463 | // lookups updated... | 467 | // lookups updated... |
| 464 | KTPermissionUtil::updatePermissionLookupForPO($oNewPO); | 468 | KTPermissionUtil::updatePermissionLookupForPO($oNewPO); |