Преглед изворни кода

N°978 Portal: Added cache delay to BrowseBrick item pictograms.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4872 a333f486-631f-4898-b8df-5754b55c2be0
glajarige пре 7 година
родитељ
комит
d7edf721d9

+ 2 - 2
datamodels/2.x/itop-portal-base/portal/src/controllers/browsebrickcontroller.class.inc.php

@@ -640,7 +640,7 @@ class BrowseBrickController extends BrickController
                     {
                         if (is_object($tmpAttValue) && !$tmpAttValue->IsEmpty())
                         {
-                            $tmpAttValue = $oApp['url_generator']->generate('p_object_document_display', array('sObjectClass' => get_class($value), 'sObjectId' => $value->GetKey(), 'sObjectField' => $aLevelsProperties[$key][$sOptionalAttribute]));
+                            $tmpAttValue = $oApp['url_generator']->generate('p_object_document_display', array('sObjectClass' => get_class($value), 'sObjectId' => $value->GetKey(), 'sObjectField' => $aLevelsProperties[$key][$sOptionalAttribute], 'cache' => 86400));
                         }
                         else
                         {
@@ -732,7 +732,7 @@ class BrowseBrickController extends BrickController
                     {
                         if (is_object($tmpAttValue) && !$tmpAttValue->IsEmpty())
                         {
-                            $tmpAttValue = $oApp['url_generator']->generate('p_object_document_display', array('sObjectClass' => get_class($aCurrentRowValues[0]), 'sObjectId' => $aCurrentRowValues[0]->GetKey(), 'sObjectField' => $aLevelsProperties[$aCurrentRowKeys[0]][$sOptionalAttribute]));
+                            $tmpAttValue = $oApp['url_generator']->generate('p_object_document_display', array('sObjectClass' => get_class($aCurrentRowValues[0]), 'sObjectId' => $aCurrentRowValues[0]->GetKey(), 'sObjectField' => $aLevelsProperties[$aCurrentRowKeys[0]][$sOptionalAttribute], 'cache' => 86400));
                         }
                         else
                         {