more session related changes
This commit is contained in:
parent
16b9675b0c
commit
024514c549
106 changed files with 1498 additions and 1313 deletions
|
|
@ -1,17 +1,16 @@
|
|||
package WebGUI::Commerce;
|
||||
|
||||
use strict;
|
||||
use WebGUI::SQL;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub setCommerceSetting {
|
||||
my ($entry);
|
||||
$entry = shift;
|
||||
WebGUI::SQL->write("delete from commerceSettings where ".
|
||||
"namespace=".quote($entry->{namespace})." and ".
|
||||
"type=".quote($entry->{type})." and fieldName=".quote($entry->{fieldName}));
|
||||
WebGUI::SQL->write("insert into commerceSettings (namespace, type, fieldName, fieldValue) values ".
|
||||
"(".quote($entry->{namespace}).",".quote($entry->{type}).",".quote($entry->{fieldName}).",".quote($entry->{fieldValue}).")");
|
||||
$self->session->db->write("delete from commerceSettings where ".
|
||||
"namespace=".$self->session->db->quote($entry->{namespace})." and ".
|
||||
"type=".$self->session->db->quote($entry->{type})." and fieldName=".$self->session->db->quote($entry->{fieldName}));
|
||||
$self->session->db->write("insert into commerceSettings (namespace, type, fieldName, fieldValue) values ".
|
||||
"(".$self->session->db->quote($entry->{namespace}).",".$self->session->db->quote($entry->{type}).",".$self->session->db->quote($entry->{fieldName}).",".$self->session->db->quote($entry->{fieldValue}).")");
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue