Fix Edit Link 'New' button to work (#863)

Fixes #11225
This commit is contained in:
Paul Culley 2019-08-07 13:49:31 -05:00 committed by GitHub
parent 27c38018fa
commit afa8e73486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ def EditObject(dbstate, uistate, track, obj_class, prop=None, value=None, callba
LOG = logging.getLogger(".Edit")
if obj_class in EDITORS.keys():
if value is None:
obj = CLASSES[obj_class]
obj = CLASSES[obj_class]()
try:
EDITORS[obj_class](dbstate, uistate, track, obj, callback=callback)
except Exception as msg: