Изменения документа LiveTable View Sheet
Редактировал(а) Сергей Коршунов 2025/05/01 21:19
От версии 4.1
отредактировано Сергей Коршунов
на 2023/01/17 14:14
на 2023/01/17 14:14
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/14.10.3]
К версии 6.1
отредактировано Сергей Коршунов
на 2024/01/18 17:27
на 2024/01/18 17:27
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/15.10.5]
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
-
Объекты (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -60,6 +60,7 @@ 60 60 #end 61 61 ## We need to set the title if we want to be able to sort or filter the doc.title live table column. 62 62 #set ($params = { 63 + 'form_token': $services.csrf.token, 63 63 'template': "${className}Template", 64 64 'title': '__entryName__', 65 65 'parent': $services.model.serialize($doc.documentReference, 'local')
- XWiki.JavaScriptExtension[0]
-
- Код
-
... ... @@ -59,7 +59,8 @@ 59 59 * Rename Application 60 60 */ 61 61 require(['jquery', 'bootstrap', 'xwiki-form-validation-async'], function($) { 62 - #set ($currentDocReference = $xwiki.getDocument($request.currentApp).getDocumentReference()) 62 + ## Note: if not currentApp request param is not passed, we default to the wiki home page reference to avoid a NPE 63 + #set ($currentDocReference = $xwiki.getDocument("$!request.currentApp").getDocumentReference()) 63 63 // if we cannot find any extension related to this page app, it's not part of an extension. 64 64 var isNotAnExtension = $services.extension.xar.getInstalledExtensions($currentDocReference).isEmpty(); 65 65