4055: Workspace Uploder enhancement: work with multiple-instances of DnD Workspace Uploader in the DOM
Task-Url: https://support.d4science.org/issues/4055 Added check on isErasable git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-uploader@128722 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
140b7d7863
commit
9a277a0d79
|
@ -85,7 +85,7 @@ public class WorkspaceUploaderServiceImpl extends RemoteServiceServlet implement
|
|||
public void run() {
|
||||
try {
|
||||
|
||||
logger.trace("Uploader: "+uploader.getClientUploadKey() +"is erasable?");
|
||||
logger.trace("Uploader: "+uploader.getClientUploadKey() +", is erasable?");
|
||||
WsUtil.eraseWorkspaceUploaderInSession(httpSession, uploader);
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
|
|
@ -229,6 +229,9 @@ public class WorkspaceUploaderItem implements Serializable{
|
|||
*/
|
||||
public Boolean isErasable() {
|
||||
|
||||
if(erasable==null)
|
||||
return false;
|
||||
|
||||
return erasable;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue