GX-Bug #43913 » b06149c9aaded6838cbd40b67496ea990eb49d45.patch
src/admin/categories.php | ||
---|---|---|
120 | 120 |
// --- MULTI STATUS ENDS --- |
121 | 121 | |
122 | 122 |
//regular actions |
123 |
if ($_GET['action']) {
|
|
124 |
switch ($_GET['action']) {
|
|
123 |
if ($_REQUEST['action']) {
|
|
124 |
switch ($_REQUEST['action']) {
|
|
125 | 125 | |
126 | 126 |
case 'setcflag': |
127 | 127 |
if($_SESSION['coo_page_token']->is_valid($_GET['page_token'])) |
... | ... | |
205 | 205 |
break; |
206 | 206 | |
207 | 207 |
case 'edit_crossselling' : |
208 |
$catfunc->edit_cross_sell($_GET);
|
|
208 |
$catfunc->edit_cross_sell($_REQUEST);
|
|
209 | 209 |
break; |
210 | 210 | |
211 | 211 |
case 'multi_action_confirm' : |
src/admin/includes/modules/cross_selling.php | ||
---|---|---|
58 | 58 |
|
59 | 59 |
<?php |
60 | 60 |
|
61 |
echo xtc_draw_form('cross_selling', FILENAME_CATEGORIES, '', 'GET', '');
|
|
61 |
echo xtc_draw_form('cross_selling', FILENAME_CATEGORIES, '', 'POST', '');
|
|
62 | 62 |
echo xtc_draw_hidden_field(xtc_session_name(), xtc_session_id()); |
63 | 63 |
echo xtc_draw_hidden_field('action', 'edit_crossselling'); |
64 | 64 |
echo xtc_draw_hidden_field('special', 'edit'); |
... | ... | |
286 | 286 |
} |
287 | 287 |
|
288 | 288 |
?> |
289 |
</table> |
|
290 |
|
|
291 |
<script type="text/javascript"> |
|
292 |
$('form').on('submit', function (e) { |
|
293 |
$('select').each(function () { |
|
294 |
$(this).prop('disabled', !$(this).closest('tr').find('input[type=checkbox]').prop('checked')); |
|
295 |
}); |
|
296 |
}); |
|
297 |
</script> |
|
289 |
</table> |
|
298 |
- |