Subversion Repositories SmartDukaan

Rev

Rev 19685 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19685 Rev 24061
Line 118... Line 118...
118
					return "success";
118
					return "success";
119
				}
119
				}
120
			}
120
			}
121
			
121
			
122
			if (action.equalsIgnoreCase("dup-entity")) {
122
			if (action.equalsIgnoreCase("dup-entity")) {
123
				if (!UserManager.getUserManager().canAssign(getUsername(),
123
				/*if (!UserManager.getUserManager().canAssign(getUsername(),
124
						entityId)) {
124
						entityId)) {
125
					addActionError("You do not have rights to clone entites.");
125
					addActionError("You do not have rights to clone entites.");
126
					return "success";
126
					return "success";
127
				}
127
				}*/
128
				String dupEntityId = this.reqparams.get("entity-old")[0];
128
				String dupEntityId = this.reqparams.get("entity-old")[0];
129
				log.info("Duplicate Entity is " + dupEntityId);
129
				log.info("Duplicate Entity is " + dupEntityId);
130
				try {
130
				try {
131
					Entity newEntity = CreationUtils.getEntity(entityId);
131
					Entity newEntity = CreationUtils.getEntity(entityId);
132
					Entity dupEntity = CreationUtils.getEntity(Long
132
					Entity dupEntity = CreationUtils.getEntity(Long