Edit => Preview => Edit shows the pagelocked warning message 
-------------------------------------------------------------

                 Key: JSPWIKI-608
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-608
             Project: JSPWiki
          Issue Type: Bug
          Components: Core & storage
    Affects Versions: 3.0
         Environment: JSPWiki-3.0.0-svn-178
            Reporter: Harry Metske
            Priority: Minor
             Fix For: 3.0


* edit a page and enter some text
* click "Preview"
* click "Keep editing"

You get the edit.locked error message (telling you that it is you holding the 
lock).

Patch for EditActionBean proposal (additional test for the current user) :

{code}
        if( lock != null && !lock.getLocker().equals( 
wikiContext.getCurrentUser().getName() ) )
        {
            messages.add( new LocalizableMessage( "edit.locked", 
lock.getLocker(), lock.getTimeLeft() ) );
        }
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to