thyseus / yii-user-management

a user management module collection for the yii framework
185 stars 122 forks source link

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

Closed stevegrove closed 12 years ago

stevegrove commented 12 years ago

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 commented 12 years ago

Thanks for reporting, i will fix this