daledotshan/liferay-portal — pull request #124 by zxdgoal (2014-11-04 07:49:30+00:00)
Title: LPS 51297

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.