Changeset 21866
- Timestamp:
- 09/10/09 19:21:16 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/pkToolkitPlugin/trunk/lib/pkSubCrudActions.class.php
r21798 r21866 6 6 // a good first pass at that); ways to check credentials and privileges on subforms, exposed in such a way that 7 7 // the show action can check them when creating edit buttons. 8 9 // TODO: think about whether $singular and $list are worth the trouble of being able to 10 // refer to things as 'event' and 'events' rather than 'item' and 'items' in templates. 11 // It would be simpler to dump all the metavariables 8 12 9 13 class pkSubCrudActions extends sfActions … … 136 140 // Reusable code for rosters of users associated with an object. This stuff is only invoked if 137 141 // you actually call it from corresponding actions in your subclass. See POGIL's events and groups 138 // actions classes. If you override this don't forget to set $this->$singular142 // actions classes. 139 143 140 144 protected function validateRosterUpdateAccess($form) … … 154 158 $type = $this->singular; 155 159 $form = $args['relationForm']; 156 $this->logMessage("QQ update user", "info");157 160 $p = $request->getParameter($type . '_user'); 158 161 $form->bind($p); … … 194 197 { 195 198 $this->object = $this->getRosterObject($request); 196 $name = $request->getParameter(' name');199 $name = $request->getParameter('q'); 197 200 if (strlen($name)) 198 201 { 199 $this->potentialUsers = $this->object->searchPotentialUsers($ request->getParameter('name'));202 $this->potentialUsers = $this->object->searchPotentialUsers($name); 200 203 } 201 204 else