[emt] r222 committed - The instance name was being stripped off of a field before it was copi...

0 views
Skip to first unread message

e...@googlecode.com

unread,
Jan 9, 2012, 11:25:35 PM1/9/12
to emt...@googlegroups.com
Revision: 222
Author: eric.bergen
Date: Mon Jan 9 20:25:09 2012
Log: The instance name was being stripped off of a field before it was
copied. Adding the instance name into copy_from_field caused it to be
stored correctly but not read back. For now the instance name is copied
outside of the copy_from_field command so it isn't lost.

http://code.google.com/p/emt/source/detail?r=222

Modified:
/trunk/plugins/output/sqlite3.php

=======================================
--- /trunk/plugins/output/sqlite3.php Mon Feb 14 14:26:22 2011
+++ /trunk/plugins/output/sqlite3.php Mon Jan 9 20:25:09 2012
@@ -73,7 +73,20 @@
}

$cf = new compact_field();
+ /**
+ * This copy_from_field call comes from
+ * base/compact_field.php which is different
+ * than the copy_from_field method from view.php
+ */
$cf->copy_from_field($field);
+
+ /**
+ * Instance name is copied off here because the
+ * instance name is stripped off when parsing.
+ * Copying instance in copy_from_field causes it
+ * to get lost in emt_view.
+ */
+ $cf->instance_name = $field->instance_name;
$cf->values = $field->values;
$cf->value = $field->value;
$this->output .= $cf->output_str() . '|';

Reply all
Reply to author
Forward
0 new messages