view category, attribute options table
CI / testsuite (mysql, 8.1, ) (push) Failing after 0s
Details
CI / testsuite (mysql, 8.4, ) (push) Failing after 0s
Details
CI / testsuite (pgsql, 8.1, ) (push) Failing after 1s
Details
CI / testsuite (pgsql, 8.4, ) (push) Failing after 1s
Details
CI / testsuite (sqlite, 8.1, ) (push) Failing after 0s
Details
CI / testsuite (sqlite, 8.1, prefer-lowest) (push) Failing after 1s
Details
CI / testsuite (sqlite, 8.4, ) (push) Failing after 0s
Details
CI / Coding Standard & Static Analysis (push) Failing after 0s
Details
CI / testsuite (mysql, 8.1, ) (push) Failing after 0s
Details
CI / testsuite (mysql, 8.4, ) (push) Failing after 0s
Details
CI / testsuite (pgsql, 8.1, ) (push) Failing after 1s
Details
CI / testsuite (pgsql, 8.4, ) (push) Failing after 1s
Details
CI / testsuite (sqlite, 8.1, ) (push) Failing after 0s
Details
CI / testsuite (sqlite, 8.1, prefer-lowest) (push) Failing after 1s
Details
CI / testsuite (sqlite, 8.4, ) (push) Failing after 0s
Details
CI / Coding Standard & Static Analysis (push) Failing after 0s
Details
This commit is contained in:
parent
5a2582a333
commit
fad4f575b8
|
@ -65,7 +65,7 @@ class ProductCategoryAttributeOptionsTable extends Table
|
||||||
public function validationDefault(Validator $validator): Validator
|
public function validationDefault(Validator $validator): Validator
|
||||||
{
|
{
|
||||||
$validator
|
$validator
|
||||||
->integer('product_category_attribute_id')
|
->uuid('product_category_attribute_id')
|
||||||
->notEmptyString('product_category_attribute_id');
|
->notEmptyString('product_category_attribute_id');
|
||||||
|
|
||||||
$validator
|
$validator
|
||||||
|
@ -96,7 +96,7 @@ class ProductCategoryAttributeOptionsTable extends Table
|
||||||
*/
|
*/
|
||||||
public function buildRules(RulesChecker $rules): RulesChecker
|
public function buildRules(RulesChecker $rules): RulesChecker
|
||||||
{
|
{
|
||||||
$rules->add($rules->existsIn(['product_category_attribute_id'], 'ProductCategoryAttributes'), ['errorField' => '0']);
|
$rules->add($rules->existsIn(['product_category_attribute_id'], 'ProductCategoryAttributes'), ['errorField' => 'product_category_attribute_id']);
|
||||||
|
|
||||||
return $rules;
|
return $rules;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,16 +75,12 @@
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= __('Name') ?></th>
|
<th><?= __('Name') ?></th>
|
||||||
<th><?= __('Options') ?></th>
|
|
||||||
<th><?= __('Enabled') ?></th>
|
<th><?= __('Enabled') ?></th>
|
||||||
<th class="actions"><?= __('Actions') ?></th>
|
<th class="actions"><?= __('Actions') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php foreach ($productCategory->product_category_attributes as $productCategoryAttribute) : ?>
|
<?php foreach ($productCategory->product_category_attributes as $productCategoryAttribute) : ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= h($productCategoryAttribute->name) ?></td>
|
<td><?= h($productCategoryAttribute->name) ?></td>
|
||||||
<td>
|
|
||||||
options
|
|
||||||
</td>
|
|
||||||
<td><?= h($productCategoryAttribute->enabled) ?></td>
|
<td><?= h($productCategoryAttribute->enabled) ?></td>
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
<?= $this->Html->link(__('View'), ['controller' => 'ProductCategoryAttributes', 'action' => 'view', $productCategoryAttribute->id]) ?>
|
<?= $this->Html->link(__('View'), ['controller' => 'ProductCategoryAttributes', 'action' => 'view', $productCategoryAttribute->id]) ?>
|
||||||
|
|
Loading…
Reference in New Issue