Backpack repeatable field not working on Azure instance, but works locally #1092
-
I have a page with a repeatable field. On my local machine it's working perfectly, but on the host machine (Azure instance) it shows the following: While it locally looks like this (as expected): The code: CRUD::addField([
'name' => 'sequence',
'label' => 'Vragenreeks',
'type' => 'repeatable',
'subfields' => [
[
'name' => 'question',
'label' => 'Vraag',
'type' => 'select2_from_array',
'options' => $this->selectableQuestionOptions(),
'allows_null' => false,
'default' => 'one',
],
],
'new_item_label' => 'Vraag toevoegen',
'init_rows' => 5,
'min_rows' => 1,
'max_rows' => 50,
]); My findings and what I've tried so far:
I'm mainly wondering, what else is there to test? It works flawlessly on my machine but not on the Azure instance. Backpack Pro is working fine and everything else (all other pages) do work as far as I can tell. Though, non of them have a Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hey @kerwin-wildsea any errors on the console, some file failed to load? My first guess would be that some required JS is not correctly loaded, or somewhere else a js error is triggered. Let me know. |
Beta Was this translation helpful? Give feedback.
Alright, so I did:
ls -la vendor/backpack/crud/src/resources/views/crud/fields/
as the code is suggesting this view exists......
...
Well, that ought to do it. Azure somehow does not clean the previous files from the vendor folder or something like it...
I assume this is from a previous release as the file is from 2022. I'm going to look into this further.
@pxpm Thank you so much for getting me on the right track. I had no idea where to start until you sent me the initial view file.
Also thanks for responding to these 'random' support tickets. Much love ❤️