Development

Changeset 21866

You must first sign up to be able to contribute.

Changeset 21866

Show
Ignore:
Timestamp:
09/10/09 19:21:16 (4 years ago)
Author:
boutell
Message:

minor tweaks accommodating the official jquery typeahead plugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/pkToolkitPlugin/trunk/lib/pkSubCrudActions.class.php

    r21798 r21866  
    66// a good first pass at that); ways to check credentials and privileges on subforms, exposed in such a way that 
    77// 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 
    812 
    913class pkSubCrudActions extends sfActions 
     
    136140  // Reusable code for rosters of users associated with an object. This stuff is only invoked if  
    137141  // 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->$singular 
     142  // actions classes.  
    139143 
    140144  protected function validateRosterUpdateAccess($form) 
     
    154158    $type = $this->singular; 
    155159    $form = $args['relationForm']; 
    156     $this->logMessage("QQ update user", "info"); 
    157160    $p = $request->getParameter($type . '_user'); 
    158161    $form->bind($p); 
     
    194197  { 
    195198    $this->object = $this->getRosterObject($request); 
    196     $name = $request->getParameter('name'); 
     199    $name = $request->getParameter('q'); 
    197200    if (strlen($name)) 
    198201    { 
    199       $this->potentialUsers = $this->object->searchPotentialUsers($request->getParameter('name')); 
     202      $this->potentialUsers = $this->object->searchPotentialUsers($name); 
    200203    } 
    201204    else