Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Fix/add minor fixes #19

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function setup()
{
$this->setWidgets(array(
<?php foreach ($this->getColumns() as $column): ?>
<?php if ($column->isPrimaryKey()) continue ?>
<?php if ($column->isPrimaryKey()) continue; ?>
'<?php echo $column->getFieldName() ?>'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($column->getFieldName())) ?> => new <?php echo $this->getWidgetClassForColumn($column) ?>(<?php echo $this->getWidgetOptionsForColumn($column) ?>),
<?php endforeach; ?>
<?php foreach ($this->getManyToManyRelations() as $relation): ?>
Expand All @@ -24,7 +24,7 @@ public function setup()

$this->setValidators(array(
<?php foreach ($this->getColumns() as $column): ?>
<?php if ($column->isPrimaryKey()) continue ?>
<?php if ($column->isPrimaryKey()) continue; ?>
'<?php echo $column->getFieldName() ?>'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($column->getFieldName())) ?> => <?php echo $this->getValidatorForColumn($column) ?>,
<?php endforeach; ?>
<?php foreach ($this->getManyToManyRelations() as $relation): ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
[?php echo $form ?]
<?php else: ?>
[?php echo $form->renderGlobalErrors() ?]
<?php foreach ($form as $name => $field): if ($field->isHidden()) continue ?>
<?php foreach ($form as $name => $field): if ($field->isHidden()) continue; ?>
<tr>
<th>[?php echo $form['<?php echo $name ?>']->renderLabel() ?]</th>
<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function parse($value)
else
{
// Associative array, merge
$merged = array_merge($merge, $parsed);
$merged = array_merge($merged, $parsed);
}

$isProcessed = $merged;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function setup()
{
$this->setWidgets(array(
<?php foreach ($this->table->getColumns() as $column): ?>
<?php if ($column->isPrimaryKey()) continue ?>
<?php if ($column->isPrimaryKey()) continue; ?>
'<?php echo $this->translateColumnName($column) ?>'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($column->getName())) ?> => new <?php echo $this->getWidgetClassForColumn($column) ?>(<?php echo $this->getWidgetOptionsForColumn($column) ?>),
<?php endforeach; ?>
<?php foreach ($this->getManyToManyTables() as $tables): ?>
Expand All @@ -23,7 +23,7 @@ public function setup()

$this->setValidators(array(
<?php foreach ($this->table->getColumns() as $column): ?>
<?php if ($column->isPrimaryKey()) continue ?>
<?php if ($column->isPrimaryKey()) continue; ?>
'<?php echo $this->translateColumnName($column) ?>'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($column->getName())) ?> => <?php echo $this->getValidatorForColumn($column) ?>,
<?php endforeach; ?>
<?php foreach ($this->getManyToManyTables() as $tables): ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
[?php echo $form ?]
<?php else: ?>
[?php echo $form->renderGlobalErrors() ?]
<?php foreach ($form as $name => $field): if ($field->isHidden()) continue ?>
<?php foreach ($form as $name => $field): if ($field->isHidden()) continue; ?>
<tr>
<th>[?php echo $form['<?php echo $name ?>']->renderLabel() ?]</th>
<td>
Expand Down