phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [phpGroupWare-developers] svn trunk ... test needed ;)


From: Dave Hall
Subject: Re: [phpGroupWare-developers] svn trunk ... test needed ;)
Date: Fri, 28 Nov 2008 12:10:00 +1100

On Thu, 2008-11-27 at 23:28 +0100, address@hidden wrote:
> > On Thu, 2008-11-27 at 17:30 +0100, Maât wrote:
> > > 2) Call to undefined method
> phpgwapi_accounts_sql::get_account_name() in
> > > ...phpgroupware/phpgwapi/inc/class.common.inc.php on line 497
> > 
> > As mentioned to you on irc, you just need to caste the account
> object
> > for this functionality. btw I fixed it in svn, was pretty easy to do
> -
> > see r19003.
> 
> Well, that's not the solution in all cases. The main stumbling block
> is the display of the user name for example, which is chosen to be
> either the username or the fullname ... this is used in the
> display_name function and not so easy to fix ...

The caste will respect the users preference and render the full name in
the desired format.  For the username (which shouldn't be used any where
except in admin) it is a public instance variable of the account object
( for example $GLOBALS['phpgw']->accounts->get($id)->lid )

Cheers

Dave






reply via email to

[Prev in Thread] Current Thread [Next in Thread]