Incorrect FieldReference is used when adding a Document of a nonstandard Document Type

Issue

  • When uploading a Document, the ddmFormValuesMap that is passed to the addFileEntry API has the wrong fieldReference. The fieldReference is set to the name instead of the fieldReference.

    While the fieldReference and name are often the same (by default), they are not necessarily so. Users can (and do) intentionally set the fieldReference to a value that is more easily understandable for them, to make it easier for them to reference the field from their custom code.

    While this bug does not have any user-visible consequences in vanilla Liferay, it does have major consequences for users who wish to use custom code that extends from the addFileEntry API.

Environment

  • DXP 7.4

Resolution

  • This issue was resolved by LPS-178838 and a hotfix should be requested from Liferay Support with it.

 

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助