mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
use current path if action node isn't set.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4747 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -752,7 +752,12 @@ public class XFormsBean
|
|||||||
|
|
||||||
private String getCurrentAVMPath()
|
private String getCurrentAVMPath()
|
||||||
{
|
{
|
||||||
final AVMNode node = this.avmBrowseBean.getAvmActionNode();
|
AVMNode node = this.avmBrowseBean.getAvmActionNode();
|
||||||
|
if (node == null)
|
||||||
|
{
|
||||||
|
return this.avmBrowseBean.getCurrentPath();
|
||||||
|
}
|
||||||
|
|
||||||
final String result = node.getPath();
|
final String result = node.getPath();
|
||||||
return node.isDirectory() ? result : AVMNodeConverter.SplitBase(result)[0];
|
return node.isDirectory() ? result : AVMNodeConverter.SplitBase(result)[0];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user