商品管理>商品登録CSV CSV構造がインポート無効な場合に初期状態に強制変更されない
- Dominant language
- PHP
- Stars
- 92
- Forks
- 97
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 9
Description
```diff
public function lfInitParam(&$objFormParam, &$arrCSVFrame)
{
// 固有の初期値調整
$arrCSVFrame = $this->lfSetParamDefaultValue($arrCSVFrame);
// CSV項目毎の処理
foreach ($arrCSVFrame as $item) {
- if ($item['status'] == CSV_COLUMN_STATUS_FLG_DISABLE) continue;
+ if ($item['status'] == CSV_COLUMN_STATUS_FLG_DISABLE && !$this->tpl_is_format_default) continue;
//サブクエリ構造の場合は AS名 を使用
if (preg_match_all('/\(.+\)\s+as\s+(.+)$/i', $item['col'], $match, PREG_SET_ORDER)) {
$col = $match[0][1];
```
あと、tpl_is_format_default は、初期化しておいた方がイイね。
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.