I fixed the ambiguity in
function get_relation_n_n_selection_array($primary_key_value, $field_info){
....
//around line number 329 //added $this->table_name.'.'.
$this->db->where($this->table_name .'.'. $field_info->primary_key_alias_to_this_table, $primary_key_value);
...
}
Is there a scenario where this fix would cause a new bug?
Found a scenario where this fails. So its best to resolve the ambiguity in the method call.
->set_relation_n_n($Col_name,$relation_table1,$selection_table1, [color=#ff0000] $table1.'._id '[/color] ,[color=#ff0000]$table2. '._id'[/color],.......)
Ambiguity in where clause when querying n_n_relations
Started by Shawn Rhoney, 07 January 2013 - 22:18 PM
- Single Page
Posted 07 January 2013 - 22:18 PM