Subversion Repositories SmartDukaan

Rev

Rev 1081 | Rev 2078 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1081 Rev 1338
Line 86... Line 86...
86
					iclient.markItemAsContentComplete(entityId);	
86
					iclient.markItemAsContentComplete(entityId);	
87
					
87
					
88
					EntityState state = CreationUtils.getEntityState(entityId);
88
					EntityState state = CreationUtils.getEntityState(entityId);
89
					state.readyEntity(getUsername());
89
					state.readyEntity(getUsername());
90
					CreationUtils.updateEntityState(state);
90
					CreationUtils.updateEntityState(state);
-
 
91
					addActionMessage("Entity marked as ready successfully");
91
				} catch (Exception e) {
92
				} catch (Exception e) {
92
					addActionError("Unable to mark entity as ready.");
93
					addActionError("Unable to mark entity as ready.");
93
					e.printStackTrace();
94
					e.printStackTrace();
94
				}
95
				}
95
				addActionMessage("Entity marked as ready successfully");
-
 
96
				return "success";
96
				return "success";
97
			}
97
			}
98
		}
98
		}
99
		addActionError("There is some problem, please contact admin.");
99
		addActionError("There is some problem, please contact admin.");
100
		return "success";
100
		return "success";