Skip to content

Commit

Permalink
fix: add language in product edit form (#7479)
Browse files Browse the repository at this point in the history
fix: add language in product edit form #7477
  • Loading branch information
stephanegigandet authored Oct 11, 2022
1 parent 9eabb2d commit 59d6ec4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion html/js/product-multilingual.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ function get_recents(tagfield) {
// Create some defaults, extending them with any options that were provided
settings = $.extend(settings, options);
img_path = settings.img_path;
code = $("input:hidden[name=\"code\"]", $(this).closest("form")).val();
code = $("#code").val();
code = code.replace(/\W/g, '');

return this.each(function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ <h1>[% title %]</h1>
[% END %]
[% END %]

<input type="hidden" name="type" value="[% type %]">
<input type="hidden" name="code" value="[% code %]">
<input type="hidden" name="action" value="process">
<input type="hidden" name="type" value="[% type %]">
<input type="hidden" id="code" name="code" value="[% code %]">
<input type="hidden" name="action" value="process">

<div id="fixed_bar" class="bottom-validation">
[% IF type == 'edit' %]
Expand Down

0 comments on commit 59d6ec4

Please sign in to comment.