Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Kasra Jamshidi
erp5
Commits
7005001e
Commit
7005001e
authored
9 years ago
by
Romain Courteaud
Browse files
Options
Download
Email Patches
Plain Diff
[erp5_hal_json_style] Only return worklist for viewable module's documents
parent
8745f912
master
allow_login_change
allow_login_change_differentiate_id_and_login
allow_login_change_wip
arnau
bt5_config
cherry-pick-4a8e045d
cleanup_acquisition_base_category
compact_title_no_reference
delivery_item_barcode
dsn-phase3
eos-dev
erp5-component
erp5-vifib
erp5-vifib-cleanup
erp5_catalog
erp5_catalog_final
erp5testnode_max_timeout
experiment/coding_style_test_suite
feat/accounting_balance_sheet_profit_and_loss_cleanups
feat/accounting_stop_using_getObject
feat/accounting_translate_gap
feat/no_useless_records_in_predicate_table
feat/olapy
feat/test_inventory_api_domain_selection
feat/trade_shipment_report
feat/wendelin-py-data
feature/renderjs-matrixbox
feature/renderjs-ui-no-header
fix/full_text_script_conflict
fix/login_validate_check_consistency
fix/repair_graph_editor
fix/xvfb_all_displays_locked
for_testrunner_1
for_testrunner_2
for_testrunner_3
gadget-json-value
initsite
isDeletable
item_tracking_graph_editor
jm/form-action-guard
joblib-activity
maste_copy
master_calendar_wip_patches
master_calendar_wip_patches_extend_security
master_no_guard_on_workflow_transition
master_no_guard_on_workflow_transition_plus_calendar_wip_patchs
monitoring
monitoring-graph
no_longer_simulated_state
officejs_clean
officejs_zip
portal_callables
portal_solver_process_security_configuration
refactor/base_edit
refactor/renderjs
reindex_calendar_after_change_calendar_exception
reverse_logistics
rewrite_test_21_AcquiredPortalType
scalability-roque
scalability-roque-2
sms_more_than_140_characters
sws_fix
taskdistribution-xmlrpc-binary
tmp/getInstalledBusinessTemplate_never_installed_bt
tristan-merge
view-aggregated-amounts
erp5.util-0.4.49
erp5.util-0.4.46
erp5.util-0.4.44
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
+11
-9
...tal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
with
11 additions
and
9 deletions
+11
-9
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
+
11
-
9
View file @
7005001e
...
@@ -1129,15 +1129,17 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
...
@@ -1129,15 +1129,17 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
if not same_type(portal_type, \'\'):\n
if not same_type(portal_type, \'\'):\n
portal_type = portal_type[0]\n
portal_type = portal_type[0]\n
\n
\n
work_list.append({\n
worklist_module_id = portal.getDefaultModuleId(portal_type, default=None, only_visible=True)\n
\'href\': url_template_dict["jio_search_template"] % {\n
if (worklist_module_id is not None):\n
"query": make_query({"query": query})\n
work_list.append({\n
},\n
\'href\': url_template_dict["jio_search_template"] % {\n
\'name\': action[\'name\'],\n
"query": make_query({"query": query})\n
\'count\': action[\'count\'],\n
},\n
\'module\': default_document_uri_template % {\n
\'name\': action[\'name\'],\n
"relative_url": portal.getDefaultModuleId(portal_type)\n
\'count\': action[\'count\'],\n
}\n
\'module\': default_document_uri_template % {\n
"relative_url": worklist_module_id\n
}\n
})\n
})\n
\n
\n
result_dict["worklist"] = work_list\n
result_dict["worklist"] = work_list\n
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help