Fix typo preventing save of records in tree view when no record is selected
This commit is contained in:
1 parent
7d7292843a
commit
817731213c
1 file changed
+1
-1
@@ -447,7 +447,7 @@ class Screen(SignalEvent):
|
||||
|
||||
def save_current(self):
|
||||
if not self.current_record:
|
||||
if self.current_view == 'tree' and len(self.group):
|
||||
if self.current_view.view_type == 'tree' and len(self.group):
|
||||
self.current_record = self.group[0]
|
||||
else:
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user