Changed options to be an array()
This commit is contained in:
parent
01f6c7ba5e
commit
4bbf00a3d1
@ -127,7 +127,7 @@ abstract class lnApp_Model_Account extends Model_Auth_UserDefault {
|
|||||||
/**
|
/**
|
||||||
* Search for accounts matching a term
|
* Search for accounts matching a term
|
||||||
*/
|
*/
|
||||||
public function list_autocomplete($term,$index,$value,array $label,array $limit=array(),array $options=NULL) {
|
public function list_autocomplete($term,$index,$value,array $label,array $limit=array(),array $options=array()) {
|
||||||
if (! isset($options['parentbypass'])) {
|
if (! isset($options['parentbypass'])) {
|
||||||
$ao = Auth::instance()->get_user();
|
$ao = Auth::instance()->get_user();
|
||||||
|
|
||||||
|
@ -227,7 +227,7 @@ abstract class lnApp_ORM extends Kohana_ORM {
|
|||||||
/**
|
/**
|
||||||
* This function is our AJAX helper, used by module list_autocomplete()
|
* This function is our AJAX helper, used by module list_autocomplete()
|
||||||
*/
|
*/
|
||||||
public function list_autocomplete($term,$index,$value,array $label,array $limit=array(),array $options=NULL) {
|
public function list_autocomplete($term,$index,$value,array $label,array $limit=array(),array $options=array()) {
|
||||||
$result = array();
|
$result = array();
|
||||||
|
|
||||||
$query = empty($options['object']) ? $this : $options['object'];
|
$query = empty($options['object']) ? $this : $options['object'];
|
||||||
|
Reference in New Issue
Block a user