Merge pull request #774 from abhishek-webkul/gli-832

Fixed: HelperForm input type 'group' submit name can not be changed
This commit is contained in:
Rohit Jain
2024-03-14 20:26:02 +05:30
committed by GitHub

View File

@@ -31,13 +31,17 @@
<tr>
<th class="fixed-width-xs">
<span class="title_box">
<input type="checkbox" name="checkme" id="checkme" onclick="checkDelBoxes(this.form, 'groupBox[]', this.checked)" />
<input type="checkbox" name="checkme" id="checkme" onclick="checkDelBoxes(this.form, '{$input['name']}[]', this.checked)" />
</span>
</th>
<th class="fixed-width-xs">
<span class="title_box">
{if isset($input['groups_id_title']) && $input['groups_id_title']}{$input['groups_id_title']}{else}{l s='ID'}{/if}
</span>
</th>
<th class="fixed-width-xs"><span class="title_box">{l s='ID'}</span></th>
<th>
<span class="title_box">
{l s='Group name'}
{if isset($input['groups_title']) && $input['groups_title']}{$input['groups_title']}{else}{l s='Group name'}{/if}
</span>
</th>
</tr>
@@ -46,8 +50,8 @@
{foreach $groups as $key => $group}
<tr>
<td>
{assign var=id_checkbox value=groupBox|cat:'_'|cat:$group['id_group']}
<input type="checkbox" name="groupBox[]" class="groupBox" id="{$id_checkbox}" value="{$group['id_group']}" {if $fields_value[$id_checkbox]}checked="checked"{/if} />
{assign var=id_checkbox value=$input['name']|cat:'_'|cat:$group['id_group']}
<input type="checkbox" name="{$input['name']}[]" class="groupBox" id="{$id_checkbox}" value="{$group['id_group']}" {if $fields_value[$id_checkbox]}checked="checked"{/if} />
</td>
<td>{$group['id_group']}</td>
<td>