Page 1 of 1

PostPosted: Thu Nov 16, 2006 12:41 pm
by Aoirthoir
In a text field (for comments/notes) I put this data:

this is a test $392.34

If I put any data into a note first and save, then go back and copy that data, everything works fine. But if I try to do the initial add I get the following errors:

Fatal error: Attempt to get relationship nonexistent '392' from table 'patients'
On line 2056 of file /media/www/libraries/dataface-0.6.9r1/Dataface/Table.php in function printStackTrace()
On line 2656 of file /media/www/libraries/dataface-0.6.9r1/Dataface/Table.php in function getRelationship(392)
On line 192 of file /media/www/libraries/dataface-0.6.9r1/Dataface/Record.php in function hasField(392.34)
On line 900 of file /media/www/libraries/dataface-0.6.9r1/Dataface/Relationship.php in function parseString(this is a test $392.34)
On line 397 of file /media/www/libraries/dataface-0.6.9r1/Dataface/RelatedRecord.php in function getForeignKeyValues(-xxx--this is a test $392.34-ddd-,,Object id #71)
On line 861 of file /media/www/libraries/dataface-0.6.9r1/Dataface/QueryBuilder.php in function getForeignKeyValues()
On line 757 of file /media/www/libraries/dataface-0.6.9r1/Dataface/IO.php in function addRelatedRecord(Object id #86)
On line 602 of file /media/www/libraries/dataface-0.6.9r1/Dataf in /media/www/libraries/dataface-0.6.9r1/Dataface/Table.php on line 2056

PostPosted: Thu Nov 16, 2006 5:23 pm
by shannah
Ok.. this is a bug.. I'm looking into it right now...

PostPosted: Thu Nov 16, 2006 5:39 pm
by shannah
OK I have posted a patch a that should fix the problem.
http://framework.weblite.ca/development/issue-tracker/137

-Steve

PostPosted: Fri Nov 17, 2006 1:42 pm
by Aoirthoir
Thanks Mr. Steve, worked perfectly.

One deparment is already live with our notes module. The rest go live on Monday. No more DOS notes...thanks. Other modules will follow.

PostPosted: Mon Nov 20, 2006 7:23 pm
by Aoirthoir
Mr. Steve,

This works now without errors. However then I get no dollar sign saved to the record...

Thank you kindly for listening bro.