ソースを参照

fix add page on es index when duplicate page

yusuketk 7 年 前
コミット
103420e4ee
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/client/js/legacy/crowi.js

+ 2 - 2
src/client/js/legacy/crowi.js

@@ -396,11 +396,11 @@ $(() => {
     $(this).serializeArray().forEach((obj) => {
     $(this).serializeArray().forEach((obj) => {
       nameValueMap[obj.name] = obj.value; // nameValueMap.new_path is duplicated page path
       nameValueMap[obj.name] = obj.value; // nameValueMap.new_path is duplicated page path
     });
     });
-
+    const data = `${$(this).serialize()}&socketClientId=${crowi.getSocketClientId()}`;
     $.ajax({
     $.ajax({
       type: 'POST',
       type: 'POST',
       url: '/_api/pages.duplicate',
       url: '/_api/pages.duplicate',
-      data: $(this).serialize(),
+      data,
       dataType: 'json',
       dataType: 'json',
     }).done((res) => {
     }).done((res) => {
       // error
       // error