ASF Bugzilla – Attachment 17547 Details for
Bug 38450
problems with create and edit in less than a second
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
workaround fot this bug
waitswhilesavetonextsecond.diff (text/plain), 1.27 KB, created by
Simon Litwan
on 2006-01-31 14:05:58 UTC
(
hide
)
Description:
workaround fot this bug
Filename:
MIME Type:
Creator:
Simon Litwan
Created:
2006-01-31 14:05:58 UTC
Size:
1.27 KB
patch
obsolete
>Index: /home/simon/src/lenya-1.2.x/src/webapp/lenya/usecases/edit-document.js >=================================================================== >--- /home/simon/src/lenya-1.2.x/src/webapp/lenya/usecases/edit-document.js (revision 372797) >+++ /home/simon/src/lenya-1.2.x/src/webapp/lenya/usecases/edit-document.js (working copy) >@@ -18,6 +18,7 @@ > importClass(Packages.org.apache.lenya.cms.cocoon.flow.FlowHelper); > importClass(Packages.org.apache.excalibur.source.SourceResolver); > importClass(Packages.org.apache.lenya.cms.cocoon.source.SourceUtil); >+importClass(Packages.java.util.Date); > > /** > * Provides general flow functions for document editing. >@@ -43,6 +44,14 @@ > var document = flowHelper.getPageEnvelope(cocoon).getDocument(); > var dstUri = flowHelper.getDocumentHelper(cocoon).getSourceUri(document); > var wfFactory = Packages.org.apache.lenya.cms.workflow.WorkflowFactory.newInstance(); >+ >+ //workaround fixes bug #38450 >+ var doclm = document.getLastModified().getTime(); >+ doclm = doclm + 1000; >+ var now = Date().getTime(); >+ while(doclm > now){ >+ now = Date().getTime(); >+ } > > SourceUtil.copy(resolver, cocoon.parameters["sourceUri"], dstUri, _getParameter("useBuffer", "false") == "true"); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 38450
: 17547