... | ... | @@ -22,13 +22,13 @@ $destination = array("destination" => drupal_get_path_alias('node/'.$node->nid). |
|
|
$pager_query->fields('wsd', array('data'));
|
|
|
```
|
|
|
|
|
|
And to fix #12, change `sites/all/modules/webform/components/grid.inc` line
|
|
|
And to fix #12, change `sites/all/modules/webform/components/grid.inc` line
|
|
|
```php
|
|
|
if (in_array($option_value, $values)) {
|
|
|
|
|
|
```
|
|
|
|
|
|
to the following :
|
|
|
to the following :
|
|
|
```php
|
|
|
if (isset($values[0]) && in_array($option_value, $values)) {
|
|
|
```
|
... | ... | @@ -44,12 +44,12 @@ Patch [proposed upstream](https://www.drupal.org/project/form_builder/issues/312 |
|
|
```
|
|
|
|
|
|
* **entityreference**, to fix #65
|
|
|
Open `sites/all/modules/entityreference/entityreference.module` (or `profiles/framaforms_org/modules/entityreference/entityreference.module` if you installed Framaforms using an installation profile), and add the following line at the end of the `entityreference_autocomplete_callback_get_matches()` function :
|
|
|
Open `sites/all/modules/entityreference/entityreference.module` (or `profiles/framaforms_org/modules/entityreference/entityreference.module` if you installed Yakforms using an installation profile), and add the following line at the end of the `entityreference_autocomplete_callback_get_matches()` function :
|
|
|
|
|
|
```
|
|
|
drupal_json_output($matches);
|
|
|
drupal_exit(); // add this
|
|
|
drupal_exit(); // add this
|
|
|
}
|
|
|
```
|
|
|
|
|
|
Optionally, this line can also be applied to `sites/all/modules/views/includes/ajax.inc` at the end of `views_ajax_autocomplete_user()` to fix views-side autocompletes. |
|
|
\ No newline at end of file |
|
|
Optionally, this line can also be applied to `sites/all/modules/views/includes/ajax.inc` at the end of `views_ajax_autocomplete_user()` to fix views-side autocompletes. |