Fix product view page when user cannot view version history
This commit is contained in:
parent
8a378317c0
commit
b0fa559760
|
@ -544,8 +544,12 @@
|
||||||
|
|
||||||
<%def name="modify_this_page_vars()">
|
<%def name="modify_this_page_vars()">
|
||||||
${parent.modify_this_page_vars()}
|
${parent.modify_this_page_vars()}
|
||||||
% if request.rattail_config.versioning_enabled() and master.has_perm('versions'):
|
<script type="text/javascript">
|
||||||
<script type="text/javascript">
|
|
||||||
|
ThisPageData.vendorSourcesData = ${json.dumps(vendor_sources['data'])|n}
|
||||||
|
ThisPageData.lookupCodesData = ${json.dumps(lookup_codes['data'])|n}
|
||||||
|
|
||||||
|
% if request.rattail_config.versioning_enabled() and master.has_perm('versions'):
|
||||||
|
|
||||||
ThisPageData.showingPriceHistory_regular = false
|
ThisPageData.showingPriceHistory_regular = false
|
||||||
ThisPageData.regularPriceHistoryDataRaw = ${json.dumps(regular_price_history_grid.get_buefy_data()['data'])|n}
|
ThisPageData.regularPriceHistoryDataRaw = ${json.dumps(regular_price_history_grid.get_buefy_data()['data'])|n}
|
||||||
|
@ -635,9 +639,6 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
ThisPageData.vendorSourcesData = ${json.dumps(vendor_sources['data'])|n}
|
|
||||||
ThisPageData.lookupCodesData = ${json.dumps(lookup_codes['data'])|n}
|
|
||||||
|
|
||||||
ThisPageData.showingCostHistory = false
|
ThisPageData.showingCostHistory = false
|
||||||
ThisPageData.costHistoryDataRaw = ${json.dumps(cost_history_grid.get_buefy_data()['data'])|n}
|
ThisPageData.costHistoryDataRaw = ${json.dumps(cost_history_grid.get_buefy_data()['data'])|n}
|
||||||
ThisPageData.costHistoryLoading = false
|
ThisPageData.costHistoryLoading = false
|
||||||
|
@ -667,8 +668,8 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
% endif
|
||||||
% endif
|
</script>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue