242 |
if ($table->has_style('history')) |
if ($table->has_style('history')) |
243 |
{ |
{ |
244 |
$self->condition->transactional_child_join($table); |
$self->condition->transactional_child_join($table); |
245 |
|
$self->condition->current($table); |
246 |
$self->add_table(sprintf "_%s_data", $table->name); |
$self->add_table(sprintf "_%s_data", $table->name); |
247 |
} |
} |
248 |
else { |
else { |
256 |
if ($table->has_style('history')) |
if ($table->has_style('history')) |
257 |
{ |
{ |
258 |
$self->add_table(sprintf "_%s_data", $table->name); |
$self->add_table(sprintf "_%s_data", $table->name); |
259 |
$self->condition->raw (" <null> <cfield name=\"_%s_data._end_t\"/> </null>\n", $table->name); |
$self->condition->current($table); |
260 |
} |
} |
261 |
else |
else |
262 |
{ |
{ |