BUG 8665: additional bug fix, error at time to download from an empty directory.

This commit is contained in:
ralpheav
2013-05-08 11:34:03 -04:00
parent c7ef775bdd
commit 1eba023890
2 changed files with 4 additions and 1 deletions

View File

@@ -127,7 +127,7 @@ class Configuration extends BaseConfiguration
}
}
public function exists($CfgUid, $ObjUid, $ProUid, $UsrUid, $AppUid)
public function exists($CfgUid, $ObjUid='', $ProUid='', $UsrUid='', $AppUid='')
{
$oRow = ConfigurationPeer::retrieveByPK( $CfgUid, $ObjUid, $ProUid, $UsrUid, $AppUid );
return (( get_class ($oRow) == 'Configuration' )&&(!is_null($oRow)));

View File

@@ -457,6 +457,9 @@ function openActionDialog(caller, action, dataAux)
break;
case 'download':
if(ext_itemgrid.getSelectionModel().getSelected() == undefined) {
break;
}
fileName=ext_itemgrid.getSelectionModel().getSelected().get('name');
// alert(ext_itemgrid.getSelectionModel().getSelected().get('downloadLink'));
// alert(ext_itemgrid.getSelectionModel().getSelected().get('downloadLabel'));