shoppingmallv2 init...

This commit is contained in:
최준흠 2023-08-02 19:35:26 +09:00
parent d00efaa713
commit b579e5a4db
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ function getFieldView_OrderHelper($field, $entity, array $fieldFilters, array $f
{
$value = $entity->$field ?: DEFAULTS['EMPTY'];
switch ($field) {
case 'product_uid':
case 'name':
return sprintf(
"<div style=\"text-align:left;\">%s</div>",
anchor(current_url() . '/view/' . $entity->getPrimaryKey(), $fieldFormOptions[$field][$value], [...$attributes, "target" => "_self"])

View File

@ -24,7 +24,7 @@
<?= $total_count - (($page - 1) * $per_page + $i) ?>
</td>
<?php foreach ($fields as $field) : ?>
<td nowrap><?= getFieldIndex_Row_OrderHelper_Admin($field, $entity, $fieldFilters, $fieldFormOptions) ?></td>
<td nowrap><?= getFieldIndex_Row_OrderHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?></td>
<?php endforeach; ?>
<td>
<?= $entity->getStatus() == DEFAULTS['STATUS'] ? anchor('cart/cancelCart/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) : "" ?>