Merge pull request #225 from jotoeri/small_fixes

Small fixes
This commit is contained in:
Marcel Klehr 2020-03-14 17:27:49 +01:00 committed by GitHub
commit 120ac94847
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 10 deletions

View file

@ -19,18 +19,18 @@
<author>Stephan Link</author>
<author>Kameron Sheppard</author>
<documentation>
<admin>https://github.com/affan98/forms/blob/master/README.md</admin>
<admin>https://github.com/nextcloud/forms/blob/master/README.md</admin>
</documentation>
<category>tools</category>
<category>social</category>
<category>organization</category>
<website>https://github.com/affan98/forms</website>
<bugs>https://github.com/affan98/forms/issues</bugs>
<repository type="git">https://github.com/affan98/forms</repository>
<screenshot>https://raw.githubusercontent.com/affan98/forms/master/screenshots/Create.PNG</screenshot>
<screenshot>https://raw.githubusercontent.com/affan98/forms/master/screenshots/List.PNG</screenshot>
<screenshot>https://raw.githubusercontent.com/affan98/forms/master/screenshots/Vote.PNG</screenshot>
<screenshot>https://raw.githubusercontent.com/affan98/forms/master/screenshots/Results.PNG</screenshot>
<website>https://github.com/nextcloud/forms</website>
<bugs>https://github.com/nextcloud/forms/issues</bugs>
<repository type="git">https://github.com/nextcloud/forms</repository>
<screenshot>https://raw.githubusercontent.com/nextcloud/forms/master/screenshots/Create.PNG</screenshot>
<screenshot>https://raw.githubusercontent.com/nextcloud/forms/master/screenshots/List.PNG</screenshot>
<screenshot>https://raw.githubusercontent.com/nextcloud/forms/master/screenshots/Vote.PNG</screenshot>
<screenshot>https://raw.githubusercontent.com/nextcloud/forms/master/screenshots/Results.PNG</screenshot>
<dependencies>
<nextcloud min-version="17" max-version="19" />
</dependencies>

View file

@ -491,7 +491,6 @@ class ApiController extends Controller {
}
// Update options
$qId = 1;
foreach($options['formQuizQuestions'] as $questionElement){
$newQuestion = new Question();

View file

@ -302,6 +302,11 @@ class PageController extends Controller {
}
}
/**
* @NoAdminRequired
* @param int $formId
* @return array
*/
public function getQuestions($formId) {
$questionList = array();
try{
@ -319,6 +324,12 @@ class PageController extends Controller {
}
}
/**
* @NoAdminRequired
* @param int $formId
* @param int $questionId
* @return array
*/
public function getAnswers($formId, $questionId) {
$answerList = array();
try{

View file

@ -58,7 +58,7 @@ export default {
},
methods: {
helpPage() {
window.open('https://github.com/affan98/forms/blob/master/Forms_Support.md')
window.open('https://github.com/nextcloud/forms/blob/master/Forms_Support.md')
},
},
}