Date index for Jan 2004


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

Re: [achievo] Re: [achievo] Re:[achievo] email notifier for new/finished projects



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Nele Vogel wrote:

> Can you explain why Achievo uses different strings to represent the
same state?

There are some inconsistencies in handling empty values, depending on
whether the value comes from the browser (post) or from the db (atkorgrec).

There is another way of checking if a value is empty, and for
'equalling' those values.

Example:

function postUpdate($rec)
{
  $old = $rec["atkorgrec"];
  $new = $rec;

  $coordinatorAttrib = $this->m_attribList["coordinator"];

  if ($coordinatorAttrib->isEmpty($old))
  {
    // This will work for all 0, NULL, "" or invalid entries.
  }

  $rawvalue    = $coordinatorAttrib->value2db($new);
  $oldrawvalue = $coordinatorAttrib->value2db($old);
  if ($rawvalue!=$oldrawvalue)
  {
    // value2db converts internal values to db compatible values. In
    // both cases, the same value should arise from that. Depending
    // on which version of ATK you are using, it's either 0 or NULL
    // , but equal in both cases.

  }

}

> a represents $record["contact"]["id"]

By the way, mails you send contain  ^^^^ ^^^^ weird chars. Perhaps a
charset problem in your mailclient?

Greetings,
Ivo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE//qQG95NUnGFZm9cRApijAKCVFefqI1gk0RWA6D3pS53OzenNsgCeLJlZ
BZWXYwUIADPBxL6ZxN6gaDo=
=ZCFk
-----END PGP SIGNATURE-----


http://www.achievo.org/lists achievo.org - ©1999-2002 ibuildings.nl BV