Skip to content

Commit

Permalink
Merge pull request #64 from nystudio107/bencroker-patch-1
Browse files Browse the repository at this point in the history
Fixes nutritional information requests when in a block field type
  • Loading branch information
khalwat committed Feb 21, 2023
2 parents 5d36914 + ec860cc commit 7654a60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/assetbundles/recipefield/dist/js/Recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
var ingredients = [];

var field = $(this).attr('data-field');
$('#fields-' + field + 'ingredients tbody tr').each(function() {
$('#' + field + 'ingredients tbody tr').each(function() {
var ingredient = [];
$(this).find('textarea, select').each(function() {
ingredient.push($(this).val());
Expand Down
2 changes: 1 addition & 1 deletion src/templates/_components/fields/Recipe_input.twig
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
{% if hasApiCredentials %}
<div class="fetch-nutritional-info text-right" style="margin: -8px 0 -24px;">
<span class="spinner hidden"></span>
<button data-field="{{ name }}" class="btn submit">
<button data-field="{{ nameSpacedId }}" class="btn submit">
Fetch Nutritional Information
</button>
</div>
Expand Down

0 comments on commit 7654a60

Please sign in to comment.