Commit 10772a8b authored by Sven Franck's avatar Sven Franck

app: allow to pass link_core into dynamic widget link generation

parent f387eedf
......@@ -3392,6 +3392,7 @@
**/
// TODO: move radio/check into property_dict and on item level?
// TODO: not nice & find better handling for text elements and i18n tags
// TODO: core?
map.listItem = function (item, wrapper, i) {
var quirk_dict, level, core, new_item, section, pos, label, j, k, field,
record;
......@@ -3402,8 +3403,8 @@
// link base
if (quirk_dict.link && !quirk_dict.link_source) {
level = quirk_dict.layout_level || 0;
core = quirk_dict.fragment_list ?
quirk_dict.fragment_list.slice(0, level + 1).join("/") : "";
core = quirk_dict.link_core || (quirk_dict.fragment_list ?
quirk_dict.fragment_list.slice(0, level + 1).join("/") : "");
}
new_item = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment