// hidden Option Id for validation use
$this->add('hidden', 'optionId', $this->_oid);
+ // Needed for i18n dialog
+ $this->assign('optionId', $this->_oid);
+
//hidden field ID for validation use
$this->add('hidden', 'fieldId', $this->_fid);
{/if}
<tr class="crm-price-option-form-block-label">
<td class="label">{$form.label.label}</td>
- <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field_value' field='label' id=$sid}{/if}{$form.label.html}</td>
+ <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field_value' field='label' id=$optionId}{/if}{$form.label.html}</td>
</tr>
<tr class="crm-price-option-form-block-amount">
<td class="label">{$form.amount.label}</td>
</tr>
<tr class="crm-price-option-form-block-description">
<td class="label">{$form.description.label}</td>
- <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field_value' field='description' id=$sid}{/if}{$form.description.html}</td>
+ <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field_value' field='description' id=$optionId}{/if}{$form.description.html}</td>
</tr>
<tr class="crm-price-option-form-block-financial-type">
<td class="label">{$form.financial_type_id.label}</td>