[interchange-cvs] interchange - racke modified dist/lib/UI/pages/include/Options/Simple

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Tue Apr 8 09:34:01 2003


User:      racke
Date:      2003-04-08 13:33:32 GMT
Modified:  dist/lib/UI/pages/include/Options Simple
Log:
set all fields at once to avoid failures with NOT NULL
prepared for translation

Revision  Changes    Path
1.2       +6 -9      interchange/dist/lib/UI/pages/include/Options/Simple


rev 1.2, prev_rev 1.1
Index: Simple
===================================================================
RCS file: /anon_cvs/repository/interchange/dist/lib/UI/pages/include/Options/Simple,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Simple	12 Feb 2003 14:41:57 -0000	1.1
+++ Simple	8 Apr 2003 13:33:32 -0000	1.2
@@ -41,11 +41,8 @@
 
 			$key =~ s/_/-/g; # javascript won't handle form names with '-'
 
-            $odb->set_field($key,'sku',$CGI->{sku});
-            $odb->set_field($key,'o_group',$name);
-            $odb->set_field($key,'o_value',$value);
-            $odb->set_field($key,'o_widget','select');
-			$odb->set_field($key,'o_label',$label);
+            $odb->set_slice($key,[qw(sku o_group o_value o_widget o_label)],
+				[$CGI->{sku},$name,$value,'select',$label]);
         }
 
         return;
@@ -135,8 +132,8 @@
 			item_id=[sql-code]
 			ui_data_fields=code sku o_widget o_width o_height
 			ui_te_widget:sku=hidden
-		"]edit</A>
-Widget: [sql-param o_widget]
+		"][L]edit[/L]</A>
+[L]Widget[/L]: [sql-param o_widget]
 <br>
 [page href="admin/flex_editor"
 		form="
@@ -154,8 +151,8 @@
 			ui_te_pre_filter:price=options2line
 			ui_te_help:price=Standard VALUE=N.NN, VALUE2=N.NN format
 			ui_te_help:o_value=Values in this option
-		"]edit</A>
-Price differential: [sql-param price]
+		"][L]edit[/L]</A>
+[L]Price differential:[/L] [sql-param price]
 </span>
 <br>
 </TD></TR>