P.S.: A quick grep reveals that add_order('created') is used 15 times in trunk, object->created is even more common. Also, there are a few occasions where a switch with version_compare exists. Does that mean that all those places need updating, too?

Bye,

Andreas

Andreas Flack schrieb:
Henri Bergius schrieb:
Hi!

On 10/21/07, Andreas Flack <[EMAIL PROTECTED]> wrote:
So, the question is: Is it normal that the created field is not set for newer (I guess after my update to midcom 2.8beta) items or is this a bug of some
kind?

It is a bug in the sense that only metadata properties should be used
now, not the deprecated properties.

So, use $invoice->metadata->created (or even better, published)
instead of $invoice->created.

Commited a fix for it now. Actually, for this particular piece of code (trunk/midcom/org.openpsa.invoices/invoice.php line 38), the best solution would be to do something like "select max(id)", because it is actually looking for the id of the youngest DB entry, but I guess that is not possible with QB yet, or is it?


Bye,

Andreas


Andreas

/Henri


_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user

_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user

Reply via email to