Permalink
Browse files

Merge pull request #49 from evilbloodydemon/preset-query-field

Preset 'query' field
  • Loading branch information...
2 parents 09c8c3d + aea724e commit 95434eb800f344d839080108e07cbab5d9580e5c @burzum burzum committed Oct 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Controller/Component/PrgComponent.php
@@ -106,7 +106,7 @@ public function __construct(ComponentCollection $collection, $settings) {
}
/**
- * Poplulates controller->data with allowed values from the named/passed get params
+ * Populates controller->data with allowed values from the named/passed get params
*
* Fields in $controller::$presetVars that have a type of 'lookup' the foreignKey value will be inserted
*
@@ -164,7 +164,7 @@ public function presetForm($options) {
}
}
- if (in_array($field['type'], array('value', 'like'))) {
+ if (in_array($field['type'], array('value', 'like', 'query'))) {
if (isset($args[$field['field']])) {
$data[$model][$field['field']] = $args[$field['field']];
}

0 comments on commit 95434eb

Please sign in to comment.