SF Patch #3391371 - Fix for schema link deactivation

This commit is contained in:
Roland Gruber
2011-10-06 11:57:06 +11:00
committed by Deon George
parent 7fc4f0c7e4
commit 6c8b623788
3 changed files with 5 additions and 2 deletions

View File

@@ -2371,6 +2371,9 @@ function deleteAttribute(attrName,friendlyName,i)
protected function drawIconObjectClassAttribute($attribute,$val) {
if (DEBUGTMP) printf('<font size=-2>%s</font><br />',__METHOD__);
if (! $_SESSION[APPCONFIG]->getValue('appearance','show_schema_link') || !$_SESSION[APPCONFIG]->isCommandAvailable('script','schema'))
return;
if (strlen($val) > 0) {
$href = sprintf('cmd.php?cmd=schema&server_id=%s&view=objectclasses&viewvalue=%s',
$this->getServerID(),$val);