additionnal php version edit can lead to bad php version on website edit
short description
- use an additional php versions for a website
- edit the "PHP name" of that version
- coming back to the website, the default PHP is selected
- if you just save the form (without changing anything), the default PHP version is applied
correct behaviour
the previously selected PHP version should have been selected in the form, and kept by the save action.
environment
Server OS: ubuntu Server OS version: 16.04 ISPConfig version: 3.1.13
proposed fix
database about that is a little bit dirty : many informations about chosen PHP version are stored into web_domain.fastcgi_php_version. the 'name' of that version (first info before ':') isn't updated in this case. that doesn't match with what we have in server_php table, so the dropdown fail to associate the current value with available ones.
quick and dirty fix would be to update all websites when saving PHP version. real fix would be to use a foreign key between web_domain and server_php !