Ticket #49 (closed defect: wontfix)
$additional_conditions in the find_one_has_many
| Reported by: | drfindley@… | Owned by: | anonymous |
|---|---|---|---|
| Priority: | high | Milestone: | 1.0 |
| Component: | Active Record | Version: | 0.11.0 |
| Severity: | major | Keywords: | |
| Cc: |
Description
$additional_conditions in the find_one_has_many and find_one_belongs_to is stored within the function, but then nothing is done with them.
$additional_conditions adds the conditions, only if the key is non-numeric.
Here is some sample fixed code:
$conditions = (is_numeric($foreign_key_value) ?
"{$foreign_key} = {$foreign_key_value}" : "{$foreign_key} = '{$foreign_key_value}'") . $additional_conditions;
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
