Commit cbc1144a17ea3d7a4721e8fefd1acc657b339b9b

Authored by nbm
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
lib/permissions/permissionutil.inc.php
... ... @@ -454,11 +454,15 @@ class KTPermissionUtil {
454 454 $aParams = array($oNewPO->getID(), $oOrigPO->getID(), $sFolderIDs);
455 455 DBUtil::runQuery(array($sQuery, $aParams));
456 456  
  457 + Folder::clearAllCaches();
  458 +
457 459 $sQuery = "UPDATE $default->documents_table SET
458 460 permission_object_id = ? WHERE permission_object_id = ? AND
459 461 parent_folder_ids LIKE ?";
460 462 DBUtil::runQuery(array($sQuery, $aParams));
461 463  
  464 + Document::clearAllCaches();
  465 +
462 466 // All objects using this PO must be new and must need their
463 467 // lookups updated...
464 468 KTPermissionUtil::updatePermissionLookupForPO($oNewPO);
... ...