Browse Source

REPORT-12877 选中多个模板,点击删除,提示没有权限

research/10.0
Hades 6 years ago
parent
commit
c86ab83bba
  1. 8
      designer-base/src/main/java/com/fr/design/file/TemplateTreePane.java

8
designer-base/src/main/java/com/fr/design/file/TemplateTreePane.java

@ -20,9 +20,14 @@ import com.fr.log.FineLoggerFactory;
import com.fr.stable.CoreConstants;
import com.fr.stable.StableUtils;
import com.fr.stable.project.ProjectConstants;
import com.fr.stable.script.CalculatorProvider;
import com.fr.stable.web.BrowserProvider;
import com.fr.stable.web.Device;
import com.fr.stable.web.Repository;
import com.fr.workspace.WorkContext;
import com.fr.workspace.server.lock.TplOperator;
import javax.servlet.http.HttpServletRequest;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.ToolTipManager;
@ -43,6 +48,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Map;
import static javax.swing.JOptionPane.WARNING_MESSAGE;
import static javax.swing.JOptionPane.YES_NO_OPTION;
@ -377,7 +383,7 @@ public class TemplateTreePane extends JPanel implements FileOperations {
TreePath[] selectedTreePaths = reportletsTree.getSelectionPaths();
if (selectedTreePaths == null || selectedTreePaths.length != 1) {
if (selectedTreePaths == null || selectedTreePaths.length == 0) {
return false;
}
// 选中的是文件夹

Loading…
Cancel
Save