Error when adding a record and putting $NUMBER together. Doe
Archived from the Xataface Users forum.
Aoirthoir — Thu Nov 16, 2006 12:41 pm
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
shannah — Thu Nov 16, 2006 5:23 pm
Ok.. this is a bug.. I’m looking into it right now…
shannah — Thu Nov 16, 2006 5:39 pm
OK I have posted a patch a that should fix the problem.
http://framework.weblite.ca/development/issue-tracker/137
-Steve
Aoirthoir — Fri Nov 17, 2006 1:42 pm
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.
Aoirthoir — Mon Nov 20, 2006 7:23 pm
Mr. Steve,
This works now without errors. However then I get no dollar sign saved to the record…
Thank you kindly for listening bro.