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

Typo/Bug in ProfileField code YumProfileField.php in extension 0.8rc6 #1

Closed
stevegrove opened this issue Jun 11, 2012 · 1 comment
Closed

Comments

@stevegrove
Copy link
Contributor

From yii-user-management_0.8rc6.tar.bz2

Just recently installed this extension and kept getting an error when editing admin user password - turns out there is a typo (extra 's') in the tableName function below - I'll try to fork it but new to Git and pushed for time.

public function tableName()
{
if (isset(Yum::module('profile')->profileFieldTable))
$this->_tableName = Yum::module('profile')->profileFieldsTable; // ERROR HERE should be 'profileFieldTable'
else
$this->_tableName = 'profile_field'; // fallback if nothing is set

    return Yum::resolveTableName($this->_tableName,$this->getDbConnection());
}

To

public function tableName()
{
if (isset(Yum::module('profile')->profileFieldTable))
$this->_tableName = Yum::module('profile')->profileFieldTable;
else
$this->_tableName = 'profile_field'; // fallback if nothing is set

    return Yum::resolveTableName($this->_tableName,$this->getDbConnection());
}
@thyseus
Copy link
Owner

thyseus commented Jun 12, 2012

Thanks for reporting, i will fix this

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