Skip to content
Permalink
Browse files

PT-3845: Changing a vocabulary source doesn't work

Fixed
  • Loading branch information...
sdumitriu committed Oct 2, 2018
1 parent f4e861a commit b3f97a90bf58c7f604e31793cee3e0c8222479ef
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see http://www.gnu.org/licenses/
-->

<xwikidoc version="1.1">
<web>PhenoTips</web>
<name>VocabularyRelocationConfiguration</name>
<language/>
<defaultLanguage/>
<translation>0</translation>
<creator>xwiki:XWiki.Admin</creator>
<creationDate>1401822201000</creationDate>
<parent>PhenoTips.IndexVocabulary</parent>
<author>xwiki:XWiki.Admin</author>
<contentAuthor>xwiki:XWiki.Admin</contentAuthor>
<date>1401822201000</date>
<contentUpdateDate>1401822201000</contentUpdateDate>
<version>1.1</version>
<title/>
<comment/>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.1</syntaxId>
<hidden>true</hidden>
<content>{{include reference="PhenoTips.TabelarDataMacros"/}}

{{velocity output="false"}}
#set ($displayDocumentName = 'PhenoTips.VocabularyRelocationConfiguration')
#set ($vocabularySourceRelocationClassname = 'PhenoTips.VocabularySourceRelocationClass')

$xwiki.ssx.use($displayDocumentName)##
$xwiki.jsx.use('PhenoTips.VocabularyRelocationConfiguration')##
{{/velocity}}

{{velocity}}
#if ("$!{request.xaction}" == 'lastentry')
#set ($entryClassName = $request.dataClassName)
#set ($options = {})
#set ($discard = $options.put('propertyName', "$!{request.propertyName}"))
#set ($discard = $options.put('propertyValue', "$!{request.propertyValue}"))
#set ($discard = $options.put('labels', "$!{request.withLabel}"))
#set ($discard = $options.put('mode', 'edit'))
#__extradata_displayLastEntry($request.dataClassName $options)
#else
{{html clean="false"}}
&lt;form action="${preferencesDoc.getURL('save')}" method="post"&gt;
&lt;div class="hidden"&gt;
&lt;input type="hidden" name="form_token" value="${escapetool.xml($services.csrf.token)}" /&gt;
&lt;input type="hidden" name="classname" value="${vocabularySourceRelocationClassname}" /&gt;
&lt;input type="hidden" name="xredirect" value="${escapetool.xml($doc.getURL($xcontext.action, $request.queryString))}" /&gt;
&lt;/div&gt;
{{/html}}
#__extradata_displayTable($vocabularySourceRelocationClassname, {'counter' : false, 'labels' : false, 'mode' : 'edit', 'addedDisplaySheet' : $displayDocumentName})
{{html clean="false"}}
&lt;div class="buttons"&gt;
&lt;input class="button" type="submit" value="$services.localization.render('phenotips.sourceRelocationConfiguration.save')" /&gt;
&lt;/div&gt;
&lt;/form&gt;
{{/html}}
#end
{{/velocity}}</content>
</xwikidoc>

0 comments on commit b3f97a9

Please sign in to comment.
You can’t perform that action at this time.