refactored WebGUI::Id to use new session api
This commit is contained in:
parent
2735385050
commit
925906ca7e
22 changed files with 130 additions and 44 deletions
|
|
@ -644,7 +644,7 @@ Use this ID to create a new row. Same as setting the key value to "new" except t
|
|||
sub setRow {
|
||||
my ($self, $table, $keyColumn, $data, $id) = @_;
|
||||
if ($data->{$keyColumn} eq "new" || $id) {
|
||||
$data->{$keyColumn} = $id || WebGUI::Id::generate();
|
||||
$data->{$keyColumn} = $id || $self->session->id->generate();
|
||||
$self->write("insert into $table ($keyColumn) values (".$self->quote($data->{$keyColumn}).")");
|
||||
}
|
||||
my (@pairs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue