Merge pull request #78 from Learwin/fix_binding

Fixed binding going missing when editing an existing record
update
Alexander Sokol 2024-01-29 21:15:30 +02:00 committed by GitHub
commit 76344356ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -249,6 +249,7 @@ def _get_bind_location_dropdown_update(model_type_value, current_location: str):
chosen = 'None'
if current_location:
model_local_path = current_location.replace(env.get_model_path(model_type) + '/', '')
model_local_path = model_local_path.replace(lookup_dir, '')
if model_local_path in choices:
chosen = model_local_path