Revision d9abca44
Von Sven Schöling vor etwa 8 Jahren hinzugefügt
SL/Controller/CustomVariableConfig.pm | ||
---|---|---|
197 | 197 |
return; |
198 | 198 |
} |
199 | 199 |
|
200 |
my $dbh = $self->config->db;
|
|
201 |
$dbh->begin_work;
|
|
200 |
SL::DB->client->with_transaction(sub {
|
|
201 |
my $dbh = SL::DB->client->dbh;
|
|
202 | 202 |
|
203 |
$self->config->save; |
|
204 |
$self->_set_cvar_validity() if $is_new; |
|
205 |
|
|
206 |
$dbh->commit;
|
|
203 |
$self->config->save;
|
|
204 |
$self->_set_cvar_validity() if $is_new;
|
|
205 |
1; |
|
206 |
}) or do { die SL::DB->client->error };
|
|
207 | 207 |
|
208 | 208 |
flash_later('info', $is_new ? t8('The custom variable has been created.') : t8('The custom variable has been saved.')); |
209 | 209 |
$self->redirect_to(action => 'list', module => $self->module); |
Auch abrufbar als: Unified diff
CustomVariableConfig: single-dbh