Migrated the code that deals with parsing the existing section's siteSettings model to a private method which can be used by both the save and update methods
Why
Sections cannot be updated via the cli
Concerns
I am concerned about adding continue here as I am not sure if there is anything necessary further down in the method that this could skip.
Previously, without this continue, the method could reach the bottom, and in turn running both update and save methods for a processor. This would result in console errors because of the 2nd save running, even though the update was successful along the lines of:
What changes made
save
andupdate
methodsWhy
Sections cannot be updated via the cli
Concerns
I am concerned about adding
continue
here as I am not sure if there is anything necessary further down in the method that this could skip. Previously, without thiscontinue
, the method could reach the bottom, and in turn running bothupdate
andsave
methods for a processor. This would result in console errors because of the 2ndsave
running, even though the update was successful along the lines of:Testing
/var/www/site/update.json
:Run with:
./var/www/site/craft/craft architect/import/update /var/www/site/update.json