Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-67975

Various fields cannot be accessed when checking a document in from the folder view or document screen view in the Document Library

    Details

      Description

      Description:
      When a document has been checked out, edited, and checked in while it is in pending status, and then approved, a notification referencing the document's title as a variable does not work correctly.

      Steps to Reproduce:
      In a clean Liferay Portal 6.2 EE SP14 bundle:
      1. Create a new workflow using the default Single Approver's XML with the following addition for notifications to the approve action:

      				<notification>
      				<name>Approve Document Notification</name>
      				<description>Your document has been approved!</description>
      				<template> 
      													
      								 			#set($documentname = $serviceContext.getAttribute("title"))
      											#set($workspacename = $serviceContext.getAttribute("workspacename"))
      											
      											
      											Your submission for ${documentname} has been approved by the administrator.
      										 </template>
      					<template-language>velocity</template-language>
      					<notification-type>user-notification</notification-type>
      					<recipients>
      						<user/>
      					</recipients>
      					<execution-type>onEntry</execution-type>
      				</notification>
      				<notification>
      					<name>Approve Email</name>
      					<description>Your document has been approved!</description>
      					<template> 
      											#set($documentname = $serviceContext.getAttribute("title"))
      											#set($workspacename = $serviceContext.getAttribute("workspacename"))
      											
      											
      											Your submission for <i>${documentname}</i> has been approved by the administrator to the following workspace: ${workspacename}
      											<p>Sincerely,<br />Covance Partner Portal Team</p>
      											 </template>
      						<template-language>velocity</template-language>
      						<notification-type>email</notification-type>
      						<recipients>
      							<user/>
      						</recipients>
      						<execution-type>onEntry</execution-type>
      				</notification>

      2. Navigate to any site and add a documents and media portlet.
      3. Under the drop-down arrow for the site's Home folder, select 'Edit'.
      4. Set the workflow created in step 1 as the default workflow for all document types. Save.
      5. Create a new basic document and upload any file.
      6. Click on the pending document and select checkout.
      7. Upload a different document and save.
      8. From the document view screen, check the document in.
      9. Now open the document for review from the notifications portlet.
      10. Assign the task to yourself and approve it.
      11. Check the approved notification.

      Expected:
      In the notification, ${documentname} is recognized as a variable.
      Actual:
      In the notification, ${documentname} is not recognized as a variable and is printed out.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                1 year, 15 weeks ago

                Packages

                Version Package