more session related bug fixes
This commit is contained in:
parent
30c3d8815d
commit
6779353b85
5 changed files with 34 additions and 29 deletions
|
|
@ -4,13 +4,14 @@ use strict;
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub setCommerceSetting {
|
||||
my $session = shift;
|
||||
my ($entry);
|
||||
$entry = shift;
|
||||
$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}).")");
|
||||
$session->db->write("delete from commerceSettings where ".
|
||||
"namespace=".$session->db->quote($entry->{namespace})." and ".
|
||||
"type=".$session->db->quote($entry->{type})." and fieldName=".$session->db->quote($entry->{fieldName}));
|
||||
$session->db->write("insert into commerceSettings (namespace, type, fieldName, fieldValue) values ".
|
||||
"(".$session->db->quote($entry->{namespace}).",".$session->db->quote($entry->{type}).",".$session->db->quote($entry->{fieldName}).",".$session->db->quote($entry->{fieldValue}).")");
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue