- Issue created by @liquidcms
- 🇨🇦Canada liquidcms
sure enough.. 5 min after posting.
certainly not the right way but i think hints at how this could work better with code changes.
so after running Default Content Deploy drush command to import all the fillpdf entities we do get them all listed as forms in fillpdf; but, as mentioned, without any "Location" (i.e. attached tpl). If we try to edit we get:
Error: Call to a member function getFileUri() on null in Drupal\fillpdf\Form\FillPdfFormForm->form() (line 279 of E:\www\Noah\main\web\modules\contrib\fillpdf\src\Form\FillPdfFormForm.php)
work-around: simply went to fillpdf_forms table and put an existing file_target_id into all the records which have no value. do a cache rebuild, refresh fillpdf form listing page and sure enough all the new/busted ones now show up with that tpl; but more importantly, i am able to edit and all the fields remain intact (I assumed it would scan the new tpl and wipe all my field definitions; but it does not). I can now upload the correct tpl and save and all is well.
I would think there is likely a simple fix here to check first if a file_target_id and if not, still allow editing.
- 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
It sounds like you've found a simple fix that would make this work better.