Yii Framework Forum: Bug Fixes: "id" Hard-Coded - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Bug Fixes: "id" Hard-Coded Rate Topic: -----

#1 User is offline   davidgraybeard 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 13-December 12

Posted 07 May 2013 - 02:05 PM

This note was supposed to be for RBAM, but it somehow ended up in the general Extensions forum.

The variable $user->id is hard-coded in views/authAssignments/assign.php at lines 111 and 147. If you are using something like userId, as I am, you'll need to tweak those lines.

Also, had to write an isActive() method that returns true in the RbamController(). Not sure if this might be a requirement of a new version of Yii or not, but it works fine with those changes.

Forgot to add my thanks for this module. It is really excellent! Taking me a little time to get used to it, but I'm getting there.

This post has been edited by davidgraybeard: 07 May 2013 - 02:57 PM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users