BUG 8665: additional bug fix, error at time to download from an empty directory.
This commit is contained in:
@@ -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)));
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user