incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Metske (JIRA)" <j...@apache.org>
Subject [jira] Created: (JSPWIKI-608) Edit => Preview => Edit shows the pagelocked warning message
Date Sat, 14 Nov 2009 17:28:39 GMT
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.


Mime
View raw message