Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jUpgradeMenuTypes::setDestinationData() error handling is buggy #11

Open
mahagr opened this issue Jan 24, 2012 · 4 comments
Open

jUpgradeMenuTypes::setDestinationData() error handling is buggy #11

mahagr opened this issue Jan 24, 2012 · 4 comments

Comments

@mahagr
Copy link
Contributor

mahagr commented Jan 24, 2012

$table isn't defined in here:

protected function setDestinationData()
{
    // Truncate jupgrade_menus table
    $this->cleanDestinationData();

    if (parent::setDestinationData()) {
        echo JError::raiseError(500, $table->getError());
    }
}
@fastslack
Copy link
Owner

What file are you talking?

If you check the setDestinationData() from jupgrade.class.php file you can see that the table are setted:

        $table = empty($this->destination) ? $this->source : $this->destination;

@mahagr
Copy link
Contributor Author

mahagr commented Jan 24, 2012

Class is jUpgradeMenuTypes, so the file is migrate_menus.php. Check above function -- there's no $table defined in it.

@fastslack
Copy link
Owner

Ahh you are right, fixing it.

@fastslack
Copy link
Owner

You are right i need to do a better error handling in the entire component, i ll do that change in 2.5.2.
For now bf20f3f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants