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 @@ -462,7 +462,7 @@ export default {
462462
463463 submissionId () {
464464 const id =
465- this .$route .params .submissionId
465+ this .$route ? .params .submissionId
466466 || loadState (appName, ' submissionId' , null )
467467 return id ? parseInt (id) : null
468468 },
@@ -816,6 +816,9 @@ export default {
816816 )
817817 } finally {
818818 this .loading = false
819+ if (! this .publicView ) {
820+ this .fetchFullForm (this .form .id )
821+ }
819822 }
820823 },
821824
You can’t perform that action at this time.
0 commit comments