Mercurial > hg > ismi-richfaces
comparison src/main/java/de/mpiwg/itgroup/ismi/browse/EntityDetailsBean.java @ 194:c7fec83ab69a
fix bugs with make-public buttons in entity details form. Closes #152.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 07 Dec 2018 15:47:06 +0100 |
parents | 8aff920ec7c0 |
children |
comparison
equal
deleted
inserted
replaced
193:76d2dda8d4de | 194:c7fec83ab69a |
---|---|
239 * Toggle this entity's public state. | 239 * Toggle this entity's public state. |
240 * @return | 240 * @return |
241 */ | 241 */ |
242 public String actionChangeEntityPrivacity() { | 242 public String actionChangeEntityPrivacity() { |
243 // toggle publication state | 243 // toggle publication state |
244 PrivacityUtils.changeEntityPrivacity(this.entity, null, getWrapper()); | 244 Entity saveEnt = PrivacityUtils.changeEntityPrivacity(this.entity, null, getWrapper()); |
245 ArrayList<Entity> saveList = new ArrayList<Entity>(); | 245 ArrayList<Entity> saveList = new ArrayList<Entity>(); |
246 saveList.add(entity); | 246 saveList.add(saveEnt); |
247 try { | 247 try { |
248 getWrapper().saveEntityListAsNodeWithoutContent(saveList, getUserName()); | 248 getWrapper().saveEntityListAsNodeWithoutContent(saveList, getUserName()); |
249 this.entity = saveEnt; | |
249 } catch (Exception e) { | 250 } catch (Exception e) { |
250 printInternalError(e); | 251 printInternalError(e); |
251 logger.error(e); | 252 logger.error(e); |
252 } | 253 } |
253 return GOTO_ENTITY_DETAILS; | 254 return GOTO_ENTITY_DETAILS; |