Fix for bug #7630
git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@148842 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4a4dd65967
commit
e3a7220a95
|
@ -2,6 +2,7 @@
|
||||||
<Changeset component="org.gcube.portlets-user.shareupdates.2-4-0"
|
<Changeset component="org.gcube.portlets-user.shareupdates.2-4-0"
|
||||||
date="2017-05-03">
|
date="2017-05-03">
|
||||||
<Change>Ported to Java8</Change>
|
<Change>Ported to Java8</Change>
|
||||||
|
<Change>Fix for bug #7630</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.portlets-user.shareupdates.2-3-1"
|
<Changeset component="org.gcube.portlets-user.shareupdates.2-3-1"
|
||||||
date="2017-04-12">
|
date="2017-04-12">
|
||||||
|
|
|
@ -539,7 +539,7 @@ public class ShareUpdateForm extends Composite {
|
||||||
linkPreviewer = null;
|
linkPreviewer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onSuccess(ClientFeed feed) {
|
public void onSuccess(ClientFeed post) {
|
||||||
enableSubmitButtons(true);
|
enableSubmitButtons(true);
|
||||||
shareTextArea.setEnabled(true);
|
shareTextArea.setEnabled(true);
|
||||||
shareTextArea.setText(SHARE_UPDATE_TEXT);
|
shareTextArea.setText(SHARE_UPDATE_TEXT);
|
||||||
|
@ -547,13 +547,13 @@ public class ShareUpdateForm extends Composite {
|
||||||
preview.clear();
|
preview.clear();
|
||||||
linkPreviewer = null;
|
linkPreviewer = null;
|
||||||
|
|
||||||
if (feed == null)
|
if (post == null)
|
||||||
Window.alert("Ops! we encountered some problems delivering your message, please try again in a short while.");
|
Window.alert("Ops! we encountered some problems delivering your message, please try again in a short while.");
|
||||||
else {
|
else {
|
||||||
// publish a message with the refresh notification
|
// publish a message with the refresh notification
|
||||||
try {
|
try {
|
||||||
|
|
||||||
pageBusAdapter.PageBusPublish("org.gcube.portal.databook.shared", feed, (Jsonizer)GWT.create(ClientFeedJsonizer.class));
|
pageBusAdapter.PageBusPublish("org.gcube.portal.databook.shared", post, (Jsonizer)GWT.create(ClientFeedJsonizer.class));
|
||||||
|
|
||||||
} catch (PageBusAdapterException ex) {
|
} catch (PageBusAdapterException ex) {
|
||||||
GWT.log(ex.getMessage());
|
GWT.log(ex.getMessage());
|
||||||
|
|
|
@ -210,7 +210,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
||||||
|
|
||||||
//everything went fine
|
//everything went fine
|
||||||
ClientFeed cf = new ClientFeed(toShare.getKey(), toShare.getType().toString(), username, feedDate, toShare.getUri(),
|
ClientFeed cf = new ClientFeed(toShare.getKey(), toShare.getType().toString(), username, feedDate, toShare.getUri(),
|
||||||
TextTransfromUtils.replaceAmpersand(toShare.getDescription()), fullName, email, thumbnailAvatarURL, toShare.getLinkTitle(), toShare.getLinkDescription(),
|
toShare.getDescription(), fullName, email, thumbnailAvatarURL, toShare.getLinkTitle(), toShare.getLinkDescription(),
|
||||||
toShare.getUriThumbnail(), toShare.getLinkHost(), null);
|
toShare.getUriThumbnail(), toShare.getLinkHost(), null);
|
||||||
|
|
||||||
|
|
||||||
|
@ -385,7 +385,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
||||||
|
|
||||||
//everything went fine
|
//everything went fine
|
||||||
ClientFeed cf = new ClientFeed(toShare.getKey(), toShare.getType().toString(), username, feedDate, toShare.getUri(),
|
ClientFeed cf = new ClientFeed(toShare.getKey(), toShare.getType().toString(), username, feedDate, toShare.getUri(),
|
||||||
TextTransfromUtils.replaceAmpersand(toShare.getDescription()), fullName, email, thumbnailAvatarURL, toShare.getLinkTitle(), toShare.getLinkDescription(),
|
toShare.getDescription(), fullName, email, thumbnailAvatarURL, toShare.getLinkTitle(), toShare.getLinkDescription(),
|
||||||
toShare.getUriThumbnail(), toShare.getLinkHost(), attachments);
|
toShare.getUriThumbnail(), toShare.getLinkHost(), attachments);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue