mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.0 to HEAD
12801: ETHREEOH-1081 - Unable to revert previous version of Wiki Page git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -71,6 +71,7 @@ function update()
|
||||
var workingCopy = page.checkout();
|
||||
workingCopy.content = json.get("pagecontent");
|
||||
workingCopy.checkin();
|
||||
page.save();
|
||||
|
||||
activityType = "org.alfresco.wiki.page-edited";
|
||||
}
|
||||
@@ -130,7 +131,8 @@ function update()
|
||||
*/
|
||||
function pageVersionMatchesSubmitted(page)
|
||||
{
|
||||
var currentVersion = 0, repoVersion = 0;
|
||||
var currentVersion = "0",
|
||||
repoVersion = "0";
|
||||
|
||||
if (json.has("currentVersion"))
|
||||
{
|
||||
@@ -143,9 +145,12 @@ function pageVersionMatchesSubmitted(page)
|
||||
}
|
||||
|
||||
return (sortByLabel(
|
||||
{ label: repoVersion},
|
||||
{ label: currentVersion }
|
||||
) != -1);
|
||||
{
|
||||
label: repoVersion
|
||||
},
|
||||
{
|
||||
label: currentVersion
|
||||
}) != -1);
|
||||
}
|
||||
|
||||
function sortByLabel(version1, version2)
|
||||
|
Reference in New Issue
Block a user