daledotshan/liferay-portal — pull request #127 by zxdgoal (2014-11-07 10:48:30+00:00)
Title: LPS-51297 Phantom image appears when editing a web content with an image upload field. 

Hey Dale.

This is a fix for LPS-51297.

The master and branch ee-6.2.x have the same code.

Because the master doesn't have the "Show" link any more. the bug is not reproduced on the master.

Moreover, after LPS-48127, the execution of code is overpassed.

But the LPS-48127 is a story and too huge to be picked up.

The code generates redundant data {"alt":"","data":""} if the field name value is empty. When an article is created, the redundant can be formatted. However, when updating an article, the format does not work any more and the redundant is persisted into database causing the problem of LPS-51297.

Anyway, if the field name value is empty. it makes no sense the redundant data is there.

Let me know if you have any questions.

John.