1 parent
8c53e10335
commit
fa2f85adbe
2 files changed
+9
-4
No files matched your search
+3
-1
@@ -516,7 +516,9 @@ var Sao = {
|
||||
}
|
||||
try {
|
||||
attributes.view_ids = loads(params.views || '[]');
|
||||
attributes.limit = loads(params.limi || 'null');
|
||||
if (params.limit !== undefined) {
|
||||
attributes.limit = loads(params.limit || 'null');
|
||||
}
|
||||
attributes.name = loads(params.name || '""');
|
||||
attributes.search_value = loads(params.search_value || '[]');
|
||||
attributes.domain = loads(params.domain || '[]');
|
||||
|
||||
@@ -978,6 +978,7 @@ class Main(Gtk.Application):
|
||||
return
|
||||
|
||||
def open_model(path):
|
||||
attributes = {}
|
||||
model, path = (path.split('/', 1) + [''])[:2]
|
||||
if not model:
|
||||
return
|
||||
@@ -985,7 +986,9 @@ class Main(Gtk.Application):
|
||||
mode = None
|
||||
try:
|
||||
view_ids = json.loads(params.get('views', '[]'))
|
||||
limit = json.loads(params.get('limit', 'null'))
|
||||
if 'limit' in params:
|
||||
attributes['limit'] = json.loads(
|
||||
params.get('limit', 'null'))
|
||||
name = json.loads(params.get('name', '""'))
|
||||
search_value = json.loads(params.get('search_value', '[]'),
|
||||
object_hook=object_hook)
|
||||
@@ -1013,9 +1016,9 @@ class Main(Gtk.Application):
|
||||
context_model=context_model,
|
||||
mode=mode,
|
||||
name=name,
|
||||
limit=limit,
|
||||
search_value=search_value,
|
||||
tab_domain=tab_domain)
|
||||
tab_domain=tab_domain,
|
||||
**attributes)
|
||||
except Exception:
|
||||
# Prevent crashing the client
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user