Skip to content

Commit 25f9276

Browse files
committed
added field prefix again
1 parent 8dd6958 commit 25f9276

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

class/Fields.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ private function getFormNewLine($form, $class, $i, $fieldMid, $fieldTid, $fName,
195195
// Index ID
196196
$form->addElement(new Modulebuilder\Html\FormLabel('<td class="center">' . $i . '</td>'));
197197
// Field Name
198-
//$thisFieldName = (!empty($fName) ? ((1 == $i) ? $fName . '_id' : $fName . '_') : '');
199-
$thisFieldName = (1 === $i) ? 'id' : '';
198+
$thisFieldName = (!empty($fName) ? ((1 == $i) ? $fName . '_id' : $fName . '_') : '');
199+
//$thisFieldName = (1 === $i) ? 'id' : '';
200200
$fieldName = new \XoopsFormText(\_AM_MODULEBUILDER_FIELD_NAME, 'field_name[' . $i . ']', 15, 255, $thisFieldName);
201201
$form->addElement(new Modulebuilder\Html\FormLabel('<td class="center">' . $fieldName->render() . '</td>'));
202202
// Field Element

0 commit comments

Comments
 (0)