commit
120ac94847
|
@ -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>
|
||||
|
|
|
@ -491,7 +491,6 @@ class ApiController extends Controller {
|
|||
}
|
||||
|
||||
// Update options
|
||||
$qId = 1;
|
||||
foreach($options['formQuizQuestions'] as $questionElement){
|
||||
$newQuestion = new Question();
|
||||
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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')
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue