mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Advanced Search: Display links also when the object is not visible
SVN:trunk[5708]
This commit is contained in:
@@ -227,7 +227,13 @@ class DisplayBlock
|
|||||||
{
|
{
|
||||||
// render now
|
// render now
|
||||||
$sHtml .= "<div id=\"$sId\" class=\"display_block\" >\n";
|
$sHtml .= "<div id=\"$sId\" class=\"display_block\" >\n";
|
||||||
$sHtml .= $this->GetRenderContent($oPage, $aExtraParams, $sId);
|
try
|
||||||
|
{
|
||||||
|
$sHtml .= $this->GetRenderContent($oPage, $aExtraParams, $sId);
|
||||||
|
} catch (Exception $e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
$sHtml .= "</div>\n";
|
$sHtml .= "</div>\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -786,8 +786,7 @@ class ScalarExpression extends UnaryExpression
|
|||||||
{
|
{
|
||||||
/** @var AttributeExternalKey $oAttDef */
|
/** @var AttributeExternalKey $oAttDef */
|
||||||
$sTarget = $oAttDef->GetTargetClass();
|
$sTarget = $oAttDef->GetTargetClass();
|
||||||
$oObj = MetaModel::GetObject($sTarget, $this->GetValue());
|
$oObj = MetaModel::GetObject($sTarget, $this->GetValue(), true, true);
|
||||||
|
|
||||||
$aValue['label'] = $oObj->Get("friendlyname");
|
$aValue['label'] = $oObj->Get("friendlyname");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1017,6 +1016,7 @@ class FieldExpression extends UnaryExpression
|
|||||||
* @param string sDefault The default value if no relevant label could be computed
|
* @param string sDefault The default value if no relevant label could be computed
|
||||||
*
|
*
|
||||||
* @return The label
|
* @return The label
|
||||||
|
* @throws \CoreException
|
||||||
*/
|
*/
|
||||||
public function MakeValueLabel($oFilter, $sValue, $sDefault)
|
public function MakeValueLabel($oFilter, $sValue, $sDefault)
|
||||||
{
|
{
|
||||||
@@ -1033,11 +1033,12 @@ class FieldExpression extends UnaryExpression
|
|||||||
// Exceptions...
|
// Exceptions...
|
||||||
if ($oAttDef->IsExternalKey())
|
if ($oAttDef->IsExternalKey())
|
||||||
{
|
{
|
||||||
|
/** @var AttributeExternalKey $oAttDef */
|
||||||
$sObjClass = $oAttDef->GetTargetClass();
|
$sObjClass = $oAttDef->GetTargetClass();
|
||||||
$iObjKey = (int)$sValue;
|
$iObjKey = (int)$sValue;
|
||||||
if ($iObjKey > 0)
|
if ($iObjKey > 0)
|
||||||
{
|
{
|
||||||
$oObject = MetaModel::GetObjectWithArchive($sObjClass, $iObjKey);
|
$oObject = MetaModel::GetObjectWithArchive($sObjClass, $iObjKey, true, true);
|
||||||
$sRes = $oObject->GetHyperlink();
|
$sRes = $oObject->GetHyperlink();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user