Changeset 18828
- Timestamp:
- 2010/09/27 16:58:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php
r18820 r18828 429 429 $this->arrForm['select_class_id1'] = $this->arrForm["class_id1"]; 430 430 $this->arrForm['select_class_id2'] = $this->arrForm["class_id2"]; 431 432 431 $this->arrClassCat = $this->getAllClassCategory($this->arrForm["class_id1"], $this->arrForm["class_id2"]); 433 434 432 $total = count($this->arrClassCat); 435 for ($i = 1; $i <=$total; $i++) {433 for ($i = 0; $i < $total; $i++) { 436 434 if ($existsValue) { 437 435 foreach ($productsClass as $key => $val) { 438 436 if(!$usepostValue){ 439 $this->arrForm[$key . ":" . $i] = $val;437 $this->arrForm[$key . ":" . ($i+1)] = $val; 440 438 } 441 439 } … … 443 441 foreach ($existsProductsClass[$i] as $key => $val) { 444 442 if(!$usepostValue){ 445 $this->arrForm[$key . ":" . $i] = $val;443 $this->arrForm[$key . ":" . ($i+1)] = $val; 446 444 } 447 }448 if (!SC_Utils_Ex::isBlank($this->arrForm['product_id:' . $i])449 && $this->arrForm["del_flg:" . $i] == 0) {450 $line .= "'check:" . $i . "',";451 }452 }453 //直前のLoopが$existsProductsClassを1始まりで参照しているので最初の情報が抜ける?454 for ($i = 0; $i < $total; $i++) {455 foreach ($existsProductsClass[$i] as $key => $val) {456 //ダウンロードファイル初期設定457 445 if($key=="down"){ 458 446 $this->objDownFile->addFile("ダウンロード販売用ファイル". ":" . ($i+1), 'down_realfilename'. ":" . ($i+1), explode(",", DOWNLOAD_EXTENSION),DOWN_SIZE, true, 0, 0); 459 447 } 448 } 449 if (!SC_Utils_Ex::isBlank($this->arrForm['product_id:' . ($i+1)]) 450 && $this->arrForm["del_flg:" . ($i+1)] == 0) { 451 $line .= "'check:" . ($i+1) . "',"; 460 452 } 461 453 }
Note: See TracChangeset
for help on using the changeset viewer.