test fixes product category variatns - trying to show attribute type id which isnt valid field on that table
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var iterable<\App\Model\Entity\ProductCategoryVariant> $productCategoryVariants
|
||||
* @var iterable<\App\Model\Entity\ProductCategoryVariant>|iterable<\Cake\ORM\Entity> $productCategoryVariants
|
||||
*/
|
||||
|
||||
?>
|
||||
<div class="productCategoryVariants index content">
|
||||
<?= $this->Html->link(__('New Product Category Variant'), ['action' => 'add'], ['class' => 'button float-right']) ?>
|
||||
@@ -15,7 +16,6 @@
|
||||
<th><?= $this->Paginator->sort('name') ?></th>
|
||||
<th><?= $this->Paginator->sort('product_category_id') ?></th>
|
||||
<th><?= $this->Paginator->sort('product_id') ?></th>
|
||||
<th><?= $this->Paginator->sort('attribute_type_id') ?></th>
|
||||
<th><?= $this->Paginator->sort('enabled') ?></th>
|
||||
<th><?= 'Options' ?></th>
|
||||
<th class="actions"><?= __('Actions') ?></th>
|
||||
@@ -23,12 +23,12 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($productCategoryVariants as $productCategoryVariant): ?>
|
||||
|
||||
<tr>
|
||||
<td><?= h($productCategoryVariant->id) ?></td>
|
||||
<td><?= h($productCategoryVariant->name) ?></td>
|
||||
<td><?= $productCategoryVariant->hasValue('product_category') ? $this->Html->link($productCategoryVariant->product_category->name, ['controller' => 'ProductCategories', 'action' => 'view', $productCategoryVariant->product_category->id]) : '' ?></td>
|
||||
<td><?= $productCategoryVariant->hasValue('product') ? $this->Html->link($productCategoryVariant->product->name, ['controller' => 'Products', 'action' => 'view', $productCategoryVariant->product->id]) : '' ?></td>
|
||||
<td><?= $this->Number->format($productCategoryVariant->attribute_type_id) ?></td>
|
||||
<td><?= h($productCategoryVariant->enabled) ?></td>
|
||||
<td>
|
||||
<small>
|
||||
|
||||
@@ -34,10 +34,6 @@
|
||||
<th><?= __('Product') ?></th>
|
||||
<td><?= $productCategoryVariant->hasValue('product') ? $this->Html->link($productCategoryVariant->product->name, ['controller' => 'Products', 'action' => 'view', $productCategoryVariant->product->id]) : '' ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Attribute Type Id') ?></th>
|
||||
<td><?= $this->Number->format($productCategoryVariant->attribute_type_id) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Enabled') ?></th>
|
||||
<td><?= $productCategoryVariant->enabled ? __('Yes') : __('No'); ?></td>
|
||||
|
||||
Reference in New Issue
Block a user