moltam89/liferay-portal — pull request #10 by akosthurzo (2013-01-18 11:23:55+00:00)
Title: [LPS-32325] Small image not available in template when image uploaded to Web Content

Resolution
reserved-article-small-image-url variable is populated in JournalUtil.addAllReservedEls(). It took care of the image if the URL had been given. If there was an uploaded image the template variable remained empty. The behavior has been changed to this: if the URL is empty, but there is an image uploaded and the "Use Small Image" checkbox is checked then populate the template variable with a URL generated based on the image ID. ThemeDisplay was needed to put together the image URL so I have added this parameter to addAllReservedEls(). The modified method was referenced in two other places which has been tested using the URLs below. They give back an XML which contains the small image URL after applying the fix.

http://localhost:8080/c/journal/get_articles?cmd=view&groupId=10177&articleId=10461&version=1.1
http://localhost:8080/c/journal/get_article?cmd=view&groupId=10177&articleId=10461&version=1.1