File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ public function getForm(Form $form): array {
203203 // Append submissionCount if currentUser has permissions to see results
204204 if (in_array (Constants::PERMISSION_RESULTS , $ result ['permissions ' ])) {
205205 $ result ['submissionCount ' ] = $ this ->submissionMapper ->countSubmissions ($ form ->getId ());
206- } else {
206+ } elseif ( $ this -> currentUser ) {
207207 $ userSubmissionCount = $ this ->submissionMapper ->countSubmissions ($ form ->getId (), $ this ->currentUser ->getUID ());
208208 if ($ userSubmissionCount > 0 ) {
209209 $ result ['submissionCount ' ] = $ userSubmissionCount ;
Original file line number Diff line number Diff line change 99 :form =" form"
1010 public-view
1111 :share-hash =" shareHash"
12- :is-logged-in =" isLoggedIn" />
12+ :is-logged-in =" isLoggedIn"
13+ :sidebar-opened =" false" />
1314 </NcContent >
1415</template >
1516
Original file line number Diff line number Diff line change @@ -465,7 +465,7 @@ export default {
465465
466466 submissionId () {
467467 const id =
468- this .$route .params .submissionId
468+ this .$route ? .params .submissionId
469469 || loadState (appName, ' submissionId' , null )
470470 return id ? parseInt (id) : null
471471 },
@@ -823,6 +823,9 @@ export default {
823823 )
824824 } finally {
825825 this .loading = false
826+ if (! this .publicView ) {
827+ this .fetchFullForm (this .form .id )
828+ }
826829 }
827830 },
828831
You can’t perform that action at this time.
0 commit comments