You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2013/07/03 07:31:29 UTC

svn commit: r1499216 - /openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/common/ProfileImagePanel.java

Author: solomax
Date: Wed Jul  3 05:31:29 2013
New Revision: 1499216

URL: http://svn.apache.org/r1499216
Log:
[OPENMEETINGS-674] Image uri was not reloaded on profile panel renew

Modified:
    openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/common/ProfileImagePanel.java

Modified: openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/common/ProfileImagePanel.java
URL: http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/common/ProfileImagePanel.java?rev=1499216&r1=1499215&r2=1499216&view=diff
==============================================================================
--- openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/common/ProfileImagePanel.java (original)
+++ openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/common/ProfileImagePanel.java Wed Jul  3 05:31:29 2013
@@ -46,7 +46,7 @@ public class ProfileImagePanel extends B
 		super(id);
 		
 		profile = new TransparentWebMarkupContainer("profile");
-		final String uri = getBean(UsersDao.class).get(userId).getPictureuri();
+		String uri = getBean(UsersDao.class).get(userId).getPictureuri();
 		boolean absolute = false;
 		try {
 			absolute = URI.create(uri).isAbsolute();
@@ -68,6 +68,7 @@ public class ProfileImagePanel extends B
 				
 				@Override
 				protected byte[] getData(Attributes attributes) {
+					String uri = getBean(UsersDao.class).get(userId).getPictureuri();
 					File img = OmFileHelper.getUserProfilePicture(userId, uri);
 					try {
 						return IOUtils.toByteArray(new FileInputStream(img));