File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -192,9 +192,19 @@ public function newForm(?int $fromId = null): DataResponse {
192192 unset($ formData ['fileFormat ' ]);
193193 unset($ formData ['lockedBy ' ]);
194194 unset($ formData ['lockedUntil ' ]);
195+ $ formData ['ownerId ' ] = $ this ->currentUser ->getUID ();
195196 $ formData ['hash ' ] = $ this ->formsService ->generateFormHash ();
196197 // TRANSLATORS Appendix to the form Title of a duplicated/copied form.
197198 $ formData ['title ' ] .= ' - ' . $ this ->l10n ->t ('Copy ' );
199+ $ formData ['access ' ] = [
200+ 'permitAllUsers ' => false ,
201+ 'showToAllUsers ' => false ,
202+ ];
203+ $ formData ['submitMultiple ' ] = false ;
204+ $ formData ['allowEditSubmissions ' ] = false ;
205+ $ formData ['showExpiration ' ] = false ;
206+ $ formData ['expires ' ] = 0 ;
207+ $ formData ['isAnonymous ' ] = false ;
198208
199209 $ form = Form::fromParams ($ formData );
200210 $ this ->formMapper ->insert ($ form );
Original file line number Diff line number Diff line change 5151 :form =" form"
5252 read-only
5353 @open-sharing =" openSharing"
54+ @clone =" onCloneForm"
5455 @mobile-close-navigation =" mobileCloseNavigation" />
5556 </ul >
5657 </template >
You can’t perform that action at this time.
0 commit comments