muk-it / muk_dms

MuK Document Management System
GNU Lesser General Public License v3.0
91 stars 144 forks source link

[11.0] Regression muk_dms_file: database operations broken on databases that have not muk_dms_file installed. #96

Closed katyukha closed 5 years ago

katyukha commented 5 years ago

Regression is here: image

Statement if env.get('muk_dms.settings') checks whether muk_dms is installed on this database (if 'muk_dms.settings' model is present in registry).

In case, when you have server with two databases: one with muk_dms_file installed and second without, then it is not possible to duplicate/backup/drop/etc second database.

Kerrim- commented 5 years ago

https://github.com/muk-it/muk_dms/commit/caa6d3498d156ef9d15f40e52c0b8c88a7f422f5 should fix this. Can you confirm?

Thanks for reporting!

katyukha commented 5 years ago

Thank you for so fast reaction) I will check it today.

katyukha commented 5 years ago

Diff shows me that file is completely rewritten. Is it correct?

Also, check this part of diff: image

is following change correct? image

Kerrim- commented 5 years ago

Now everything should be working fine.

https://github.com/muk-it/muk_dms/commit/afe20f7a08ec95aa0e287228caea6b6fea8eff1d