Development

Changeset 10086

You must first sign up to be able to contribute.

Changeset 10086

Show
Ignore:
Timestamp:
07/03/08 14:19:50 (5 months ago)
Author:
Leon.van.der.Ree
Message:

bug-fix for json-autocomplete since new column-name-results (I expect maybe some more similar problems...)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/_json_autocomplete_td.php

    r9658 r10086  
    5656  $relatedTableGrouped  = $this->getSubGroupedColumns($relatedTableFKs, $groupedColumns); 
    5757  $relatedTablePK       = $relatedTableGrouped['pk']; 
     58   
     59  $columnname = substr($column->key, $last + 1); 
    5860 
    5961// TODO: to make it work with componentents and partials, check the method getColumnAjaxDefinition instead of processColumnAutocompleteName (which can than get private) 
    6062?> 
    6163  "<?php echo $relatedTableName.$this->tableDelimiter.$relatedTablePK->getName() ?>": "[?php echo str_replace('"', '\"', $results->get<?php echo sfInflector::camelize($relatedTablePK->getName()) ?>() ) ?]", 
    62   "<?php echo $relatedTableName.$this->tableDelimiter.$column->getName() ?>": "[?php echo str_replace('"', '\"', $results->get<?php echo sfInflector::camelize($column->getName()) ?>() ) ?]" 
     64  "<?php echo $relatedTableName.$this->tableDelimiter.$columnname ?>": "[?php echo str_replace('"', '\"', $results->get<?php echo sfInflector::camelize($columnname) ?>() ) ?]" 
    6365  [?php $i++; ?] 
    6466[?php endif; ?]