Restore limit when searching for searching for wizard name
20cdba7a1bf3 removed the limit but it is still needed to extract the single record. Closes #14238 (grafted from 303d517654fcbee0369a27e752e312bd9b722d1c) --HG-- branch : 7.0
This commit is contained in:
1 parent
cdc10ed0fd
commit
c446ca6d0e
1 file changed
+2
-1
@@ -1095,7 +1095,8 @@ class ActionWizard(ActionMixin, ModelSQL, ModelView):
|
||||
('model', '=', None),
|
||||
],
|
||||
],
|
||||
order=[('model', 'ASC NULLS LAST')])
|
||||
order=[('model', 'ASC NULLS LAST')],
|
||||
limit=1)
|
||||
if actions:
|
||||
action, = actions
|
||||
return action.name
|
||||
|
||||
Reference in new issue
Block a user