JoomGalleryfriends / JG4-dev

Development repository for JoomGallery v4.x
GNU General Public License v3.0
10 stars 6 forks source link

Fix php error when interrupt migration before step 1 #197

Closed Elfangor93 closed 4 months ago

Elfangor93 commented 4 months ago

If you interrupt a migration before saving the migration configuration form the first time you get a php error because there are no params. This PR adds default values when getting migration params to mitigate that: $this->params->get('same_db', 1)

Test result before applying this PR

Interrupting before submission of the migration configuration will throw a php error

Test result after applying this PR

No error is thrown

eumel1602 commented 4 months ago

Auf zwei verschiednenen installationen getestet ! Es funktioniert nun gut! Unterbrechung der Migartion, ganz am anfang ohne was zu machen, funktioniert! WIN / PHP 8.1 / J4.3.3

MrMusic commented 4 months ago

I have tested this item ✅ successfully. Thank you very much.