This topic is locked

Quick Events Question

5/10/2007 11:08:42 AM
PHPRunner General questions
G
GeddyLee author

Hey all,
Could anyone tell me if the $value array in the BeforeEdit() event contains every value from the page, or just the new ones.

(i.e. if I have three fields in a database, and the user only edits one of them, does $values contain all three, or just the edited one?)
The reason I ask is that I'd like to track specifically what changes users make to the database and write those to a text field in another table.
Thanks,

-Brent

Sergey Kornilov admin 5/10/2007

Brent,
$values array contains all values on Edit form.

To compare old and new data you need to retrieve old record from the database and compare each field.
We plan to extend events model to pass both old and new values to BeforeEdit event.

Most probably that will be released as a separate minor update in two-three weeks.