File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 7171$ new_instock = isset ($ _POST ['instock ' ]) ? (integer )$ _POST ['instock ' ] : 0 ;
7272$ new_instock = isset ($ _POST ['instock_unknown ' ]) ? (integer ) Part::INSTOCK_UNKNOWN : $ new_instock ;
7373$ new_mininstock = isset ($ _POST ['mininstock ' ]) ? (integer )$ _POST ['mininstock ' ] : 0 ;
74- $ new_category_id = isset ($ _POST ['category_id ' ]) ? (integer )$ _POST ['category_id ' ] : 0 ;
74+ //The category ID is given as a GET param, so we need REQUEST here.
75+ $ new_category_id = isset ($ _REQUEST ['category_id ' ]) ? (integer )$ _REQUEST ['category_id ' ] : 0 ;
7576$ new_storelocation_id = isset ($ _POST ['storelocation_id ' ]) ? (integer )$ _POST ['storelocation_id ' ] : 0 ;
7677$ new_footprint_id = isset ($ _POST ['footprint_id ' ]) ? (integer )$ _POST ['footprint_id ' ] : 0 ;
7778$ new_visible = isset ($ _POST ['visible ' ]);
You can’t perform that action at this time.
0 commit comments