Skip to content

Commit

Permalink
added lang for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
zmsdev committed Dec 5, 2024
1 parent 5815635 commit bf4095f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Products/zms/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def get_tags(self, context):
@api(tag="version", pattern="/{path}/get_tag", method="GET", content_type="application/json")
def get_tag(self, context):
request = _get_request(context)
lang = request.get('lang')
tag = request.get('tag').split(",")
dt = tag[0]
data = []
Expand All @@ -348,6 +349,7 @@ def get_tag(self, context):
@api(tag="version", pattern="/{path}/body_content", method="GET", content_type="text/html")
def body_content(self, context):
request = _get_request(context)
lang = request.get('lang')
tag = request.get('tag').split(",")
dt = tag[0]
html = []
Expand Down
2 changes: 1 addition & 1 deletion Products/zms/zpt/versionmanager/manage_undoversionform.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ $(function() {
$.get($ZMI.get_rest_api_url(href)+"/body_content", {tag:tag,lang:getZMILang()}, function(html) {
html = remove_curly_braces(html);
$html.html(html);
$.get($ZMI.get_rest_api_url(href)+"/get_tag",{tag:tag},function(json) {
$.get($ZMI.get_rest_api_url(href)+"/get_tag",{tag:tag,lang:getZMILang()},function(json) {
let str = JSON.stringify(json, null, 4)
$json.text(str);
console.log("Loaded " + tag + " for " + id);
Expand Down

0 comments on commit bf4095f

Please sign in to comment.