WeBid Bug Tracking

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000632WeBidAuctionspublic2017-09-11 08:072017-10-25 12:55
Reportermascierx 
Assigned Torenlok 
PriorityurgentSeveritymajorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformOSOS Version
Product Version1.2.2 
Target VersionFixed in Version 
Summary0000632: Auctions
DescriptionURGENT

I select the category for a new auction but it does not work stops, it stays on the link:

https://www.e-tictacshop.com/select_category.php#goto [^]

Thanks for the help
Steps To Reproduce// Process category selection
$box = (isset($_POST['box']) && !empty($_POST['box'])) ? $_POST['box'] + 1 : 0;
$catscontrol = new MPTTcategories();
$cat_no = (isset($_REQUEST['cat_no'])) ? $_REQUEST['cat_no'] : 1;
$i = 0;
$POST = [];    <=== THIS IS A MISTAKE IN PHP page select_category.php
while (true)
{
    if (!isset($_POST['cat' . $i])) 
    {
        break;
    }
    $POST['cat' . $i] = $_POST['cat' . $i];
    $i++;
}


if (isset($_POST['action']) && $_POST['action'] == 'process' && $_POST['box'] == '') 
{
    $_SESSION['action'] = 1;
    $VARNAME = 'cat' . (count($POST) - 1);
    $_SESSION['SELL_sellcat' . $cat_no] = $POST[$VARNAME];
    $query = "SELECT left_id, right_id FROM " . $DBPrefix . "categories WHERE cat_id = :sellcat";
    $params = array();
    $params[] = array(':sellcat', $_POST[$VARNAME], 'int');
    $db->query($query, $params);
    $lft_rgt = $db->result();
    if ($lft_rgt['left_id'] + 1 == $lft_rgt['right_id']) 
    {
        if ($system->SETTINGS['extra_cat'] == 'n' || ($cat_no == 2 && $system->SETTINGS['extra_cat'] == 'y')) 
        {
            header('location: sell.php');
            exit;
        } 
        else 
        {
            header('location: select_category.php?cat_no=2');
            exit;
        }
    } 
    else 
    {
        $ERR = $ERR_25_0001;
    }
}
Additional InformationIn practice, by selecting an item you can not publish new auctions
TagsNo tags attached.
import_id
Thread
Attached Files

- Relationships
duplicate of 0000631new Auctions 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2017-09-11 08:07 mascierx New Issue
2017-10-25 12:55 renlok Relationship added duplicate of 0000631
2017-10-25 12:55 renlok Status new => closed
2017-10-25 12:55 renlok Assigned To => renlok
2017-10-25 12:55 renlok Resolution open => duplicate


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker